Displaying 1 result from an estimated 1 matches for "after_after_cr".
2006 Jul 19
1
Catch 22 with after_save. Please help.
...AnotherClass.find_event raises the exception "Can''t find event with
id=34" or whatever id it had, because the transaction hasn''t been
committed. That exception then rolls back the transaction, creating a
catch 22.
So basically what I''m asking if there an after_after_create method?
ha ha. Basically a method that gets called after the transaction is
committed.
Also, in case you were wondering I did set up an EventObserver and
get the same exact problem.
Lastly, I can not pass the object because AnotherClass is in a
background process and passing methods b...