Skip to content

Commit

Permalink
make sure the generated ID does not ever look like something the serv…
Browse files Browse the repository at this point in the history
…er would return
  • Loading branch information
maccman committed Jan 11, 2012
1 parent 5f62b1c commit dd515cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Model extends Module

create: (options) ->
@trigger('beforeCreate', options)
@id = @constructor.uid() unless @id
@id = @cid unless @id

record = @dup(false)
@constructor.records[@id] = record
Expand Down

0 comments on commit dd515cd

Please sign in to comment.