Merge pull request #539 from fabien/fix/tiny-return-scope

Return scope object from DAO.scope
This commit is contained in:
Raymond Feng 2015-03-27 09:26:50 -07:00
commit c340f416b1
1 changed files with 1 additions and 1 deletions

View File

@ -2080,7 +2080,7 @@ DataAccessObject.scope = function (name, query, targetClass, methods, options) {
if (options && options.isStatic === false) {
cls = cls.prototype;
}
defineScope(cls, targetClass || cls, name, query, methods, options);
return defineScope(cls, targetClass || cls, name, query, methods, options);
};
/*