diff --git a/lib/relation-definition.js b/lib/relation-definition.js index 0074f318..778172eb 100644 --- a/lib/relation-definition.js +++ b/lib/relation-definition.js @@ -65,10 +65,10 @@ function extendScopeMethods(definition, scopeMethods, ext) { customMethods = ext.call(definition, scopeMethods, relationClass); } else if (typeof ext === 'object') { function createFunc(definition, relationMethod) { - return function() { - var relation = new relationClass(definition, this); - return relationMethod.apply(relation, arguments); - }; + return function() { + var relation = new relationClass(definition, this); + return relationMethod.apply(relation, arguments); + }; }; for (var key in ext) { var relationMethod = ext[key];