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.
*/
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.
*/
var Model = module.exports = modeler.define('model');
var Model = module.exports = modeler.define('Model');
Model.shared = true;

View File

@ -20,7 +20,7 @@ var properties = {
* 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.

View File

@ -45,7 +45,7 @@ var properties = {
* 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`.

View File

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