0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Store the Bookshelf instance on the Bookshelf module

- Assigns the ghostBookshelf instance to the Bookshelf.ghost property
This commit is contained in:
Jacob Gable 2013-10-22 15:32:46 -05:00
parent fc53bc8a15
commit 34343e893d

View file

@ -9,7 +9,7 @@ var ghostBookshelf,
sanitize = require('validator').sanitize;
// Initializes a new Bookshelf instance, for reference elsewhere in Ghost.
ghostBookshelf = Bookshelf.initialize(config[process.env.NODE_ENV || 'development'].database);
ghostBookshelf = Bookshelf.ghost = Bookshelf.initialize(config[process.env.NODE_ENV || 'development'].database);
ghostBookshelf.client = config[process.env.NODE_ENV].database.client;
ghostBookshelf.validator = new Validator();