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.

bgentry's latest activity

Friday, April 01 2011
6660 Allow after_commit :do_something, :on => [:update, :create] was updated in Ruby on Rails
  • bgentry
    bgentry commented at 9:04 PM

    I still thing it's a valid bug, the behavior is certainly not as I'd expect. Callbacks are never supposed to override each other like this. At a glance it didn'...

  • bgentry
    bgentry commented at 8:25 PM

    Also, I believe you can work around this exact issue by defining a single callback and only running it if the object is persisted:

    after_commit :do_something, ...
  • bgentry
    • Tag set to callbacks
    by bgentry at 8:16 PM

    I just encountered this same bug today and was fortunate to find this bug report from a day ago. I have the same situation and I'd like to run the same actions ...

Thursday, September 16 2010
5642 Clean up & Optimize session_store config was created in Ruby on Rails
  • bgentry
    bgentry created the ticket at 9:33 PM

    See this code block

    The Rails::Application::Configuration#session_store method has several issues. First of all, when trying to set this up with DataMapper, I ...