Skip to content

Commit

Permalink
Shorter.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Aug 18, 2010
1 parent adc48ba commit 41d1871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var Model = function(name, class_methods, instance_methods) {
this.attributes = attributes || {};
this.changes = {};
this.errors = new Model.Errors(this);
this.uid = [this.constructor._name, Model.UID.generate()].join("-")
this.uid = [name, Model.UID.generate()].join("-")
};

// Persistence is special, remove it from class_methods.
Expand Down

0 comments on commit 41d1871

Please sign in to comment.