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

Commit 2470c1df by Daniel Durante

Added daoFactory.findOrBuild() as an alias for findOrInitialize()

1 parent d5c17dad
Showing with 1 additions and 1 deletions
......@@ -531,7 +531,7 @@ module.exports = (function() {
return this.build(values).save(fields)
}
DAOFactory.prototype.findOrInitialize = function (params, defaults) {
DAOFactory.prototype.findOrInitialize = DAOFactory.prototype.findOrBuild = function (params, defaults) {
var self = this
, defaultKeys = Object.keys(defaults || {})
, defaultLength = defaultKeys.length
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!