Skip to content

Commit

Permalink
Merge pull request #49 from zachberry/issue/has-many-assoc-properties…
Browse files Browse the repository at this point in the history
…-not-checked

hasMany association properties not being checked
  • Loading branch information
dresende committed Feb 23, 2013
2 parents 562a7ff + b3e6325 commit fb73b6e
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 fb73b6e

Please sign in to comment.