Merge pull request #60 from strongloop/model-names

Fix bundle model name casing
This commit is contained in:
Ritchie Martori 2013-11-11 13:39:13 -08:00
commit 642bfa84f4
5 changed files with 7 additions and 7 deletions

View File

@ -21,4 +21,4 @@ var properties = {
* Extends from the built in `loopback.Model` type. * Extends from the built in `loopback.Model` type.
*/ */
var Email = module.exports = Model.extend('email', properties); var Email = module.exports = Model.extend('Email', properties);

View File

@ -9,7 +9,7 @@ var modeler = new ModelBuilder();
* Define the built in loopback.Model. * Define the built in loopback.Model.
*/ */
var Model = module.exports = modeler.define('model'); var Model = module.exports = modeler.define('Model');
Model.shared = true; Model.shared = true;
@ -113,4 +113,4 @@ Model.setup = function () {
} }
// setup the initial model // setup the initial model
Model.setup(); Model.setup();

View File

@ -20,7 +20,7 @@ var properties = {
* Extends from the built in `loopback.Model` type. * Extends from the built in `loopback.Model` type.
*/ */
var Session = module.exports = Model.extend('session', properties); var Session = module.exports = Model.extend('Session', properties);
/** /**
* Create a cryptographically random session id. * Create a cryptographically random session id.
@ -53,4 +53,4 @@ Session.beforeCreate = function (next, data) {
next(); next();
} }
}); });
} }

View File

@ -45,7 +45,7 @@ var properties = {
* Extends from the built in `loopback.Model` type. * Extends from the built in `loopback.Model` type.
*/ */
var User = module.exports = Model.extend('user', properties); var User = module.exports = Model.extend('User', properties);
/** /**
* Login a user by with the given `credentials`. * Login a user by with the given `credentials`.

View File

@ -9,7 +9,7 @@
"Platform", "Platform",
"mBaaS" "mBaaS"
], ],
"version": "1.2.0", "version": "1.2.1",
"scripts": { "scripts": {
"test": "mocha -R spec", "test": "mocha -R spec",
"blanket": { "blanket": {