lib/assets/javascripts/backbone_extensions/associations.js in backbone_extensions-0.0.10 vs lib/assets/javascripts/backbone_extensions/associations.js in backbone_extensions-0.0.11

- old
+ new

@@ -141,10 +141,13 @@ }); }, extend: _(source.extend).wrap(function(oldExtend, protoProps, classProps) { return _(oldExtend.call(this, protoProps, classProps)).tap(function() { - source.associations((protoProps || {}).associations); + var args = (protoProps || {}).associations; + if (args) { + source.associations.apply(source, _([args]).flatten()); + } }); }) }); source.prototype.initialize = _(source.prototype.initialize).wrap(function(oldInitialize, attrsOrModels, options) {