不要怂,就是干,撸起袖子干!

Commit 57e03481 by Sascha Depold

minor changes

1 parent 2b27751e
Showing with 3 additions and 0 deletions
......@@ -13,6 +13,8 @@ var Model = module.exports = function(name, attributes, options) {
this.name = name
this.attributes = attributes
this.options = options || {}
this.associations = []
}
var classMethods = {
......@@ -33,6 +35,7 @@ var instanceMethods = {
}
}
/* Add the class and instance methods to Model */
Utils._.map(classMethods, function(fct, name) { Model[name] = fct })
Utils._.map(instanceMethods, function(fct, name) { Model.prototype[name] = fct})
Utils._.map(Mixin.classMethods, function(fct, name) { Model[name] = fct })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!