Merge pull request #60 from strongloop/model-names
Fix bundle model name casing
This commit is contained in:
commit
642bfa84f4
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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`.
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue