On 7 February 2011 21:35, Matias Fierro
<tute.unique-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I want to trigger a callback after the creation of an object. With a
> after_create I have the problem that if the record crash for any
> reason when save, then I have some corrupt data. So I need a callback
> after_save but only when the record is new.
As far as I know after_create *is* after_save but only when the record
is new. What is the problem that you have using after_create?
Colin
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.