Skip to content

Commit

Permalink
Fix object not returning
Browse files Browse the repository at this point in the history
  • Loading branch information
cadwallion committed Jul 8, 2011
1 parent e7c6c17 commit 1e84f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -16,6 +16,7 @@

object_data = Hash.merge(Factory.patterns[model]["attributes"], data);
object = new(Factory.patterns[model]["class"])(object_data);
return object;
}
Factory.create = function(model, data) {
object = Factory.build(model, data);
Expand Down

0 comments on commit 1e84f11

Please sign in to comment.