So it the row locked or something until after_save is completed?
Because I am calling methods in after_save that do things with that
new row addition. These other methods are saying that it doesn''t
exist, because the other methods are doing Model.find the_id.
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson@contuitive.com
On Jul 17, 2006, at 5:16 PM, Jeremy Kemper wrote:
> On Jul 17, 2006, at 3:04 PM, Ben Johnson wrote:
>> Does after_save in a model delete if an exception is raised in there?
>
> Look for BEGIN ... ROLLBACK in your logs. That''s the save
> transaction rolling back due to the exception in after_save. It''s
> as if your record was never created.
>
> jeremy
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060717/c3f1b6b7/attachment-0001.html