Fix camel-case issue where relation is 'hasAndBelongsToMany' #304

Signed-off-by: Khashayar Hajian <me@khashayar.me>
This commit is contained in:
Khashayar Hajian 2014-09-19 16:23:39 +02:00
parent 28a661a81a
commit c3df513712
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ function defineScope(cls, targetClass, name, params, methods, options) {
f._targetClass = targetModel.modelName; f._targetClass = targetModel.modelName;
if (f._scope.collect) { if (f._scope.collect) {
f._targetClass = i8n.capitalize(f._scope.collect); f._targetClass = i8n.camelize(f._scope.collect);
} }
f.build = build; f.build = build;