#980 ✓resolved
Nathan

Hooks run twice when a newly created resource is saved, but not if it is refetched from the db

Reported by Nathan | July 17th, 2009 @ 03:59 PM | in 0.10.0

Yeah, so #save seems to run after/before :save callbacks twice if the Resource instance is newly created and has a has 1.

If you refetch (Model.first), then #save doesn't exhibit this same behavior.

See standalone example: http://gist.github.com/149224

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Pages