Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

barunio's latest activity

Monday, January 25 2010
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 1:33 AM

    There were a few red herrings in the earlier messages. The root of the problem seems to be that in the after_create callback in the Foo model there is a call to...

  • barunio
    • Tag changed from 2.2.3, after_create, callback, polymorphic to 2.2.3, 2.3.5, after_create, callback, polymorphic
    by barunio at 12:15 AM

    Yes, I can confirm that this is still happening as of Rails 2.3.5

Sunday, August 23 2009
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 6:34 PM

    so.. did the bugmash result in any better understanding of this issue?

Monday, August 10 2009
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 5:17 AM

    Elad -- I have been unable to duplicate the conditions leading to this bug using the AR test suite. To see the failure, see the very small test app at start of ...

  • barunio
    barunio commented at 4:57 AM

    Dan, I think you might have misunderstood what I wrote in my earlier notes (some were a bit confusing), as Rebecca pointed out. To clarify:

    I have not been able...

Tuesday, August 04 2009
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 4:09 AM

    An additional piece of information that might help narrow down what's going on here:

    In my test app, if I return 'false' from my callback, a duplicate associati...

  • barunio
    barunio commented at 3:42 AM

    [Apologies for the delayed reply]

    I duplicated the failing case from my test app in the AR test suite and it didn't fail!
    The AR test suite setup has a lot of e...

Sunday, July 05 2009
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 5:21 PM

    Glad others are seeing the strange behavior here as well :)

    Michael, I think I've found where to add to the AR test suite to show the same behavior as my exampl...

Wednesday, June 10 2009
2765 after_create callback not working as it should was updated in Ruby on Rails
  • barunio
    barunio commented at 8:30 PM

    fyi, just checked, the bug still exists in 2.3.2, and it only appears if you use the after_create callback, (using the after_save callback works as expected).

  • barunio
    barunio commented at 8:17 PM

    are there no rails team members interested in looking at this? i think this issue is due to a bug in the callback routines somewhere (at least in 2.2.2)..