Skip to content

Commit

Permalink
Fixes an issue where hasMany association properties were not being ch…
Browse files Browse the repository at this point in the history
…ecked
  • Loading branch information
zachberry committed Feb 23, 2013
1 parent 562a7ff commit b3e6325
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Associations/Many.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var InstanceConstructor = require("../Instance").Instance;
var Singleton = require("../Singleton");
var Settings = require("../Settings");
var Property = require("../Property");

exports.prepare = function (Model, associations) {
Model.hasMany = function () {
Expand Down Expand Up @@ -28,6 +29,10 @@ exports.prepare = function (Model, associations) {
}
if (props === null) {
props = {};
} else {
for (var k in props) {
props[k] = Property.check(props[k]);
}
}

var assocName = opts.name || ucfirst(name);
Expand Down

0 comments on commit b3e6325

Please sign in to comment.