Is it by design that the following happens, or is it an ActiveRecord
bug (Rails 2.0.2)?
@post = Post.find(params[:id])
Assuming I have a PostObserver which observes after_update, what
- Transaction BEGINS
- @post is saved
- PostObserver#after_update is called
- Comment is created
- Transaction COMMITED
As this is a transaction I would expect to get the after_update, AFTER
all associated records are created/updated but this is not the case.
Has anyone come across this before?