December 2011
1 post
Hidden Secrets of the Rails Dev: Gotchas While...
Upon migrating from Rails 2 to 3, one might happen across some “gotchas”. I present a few such that you may heed caution.
ActiveSupport::Callbacks#run_callbacks
This method takes a &block parameter. In Rails 2, &block will run after each callback, and halt the chain if it returns false. In Rails 3, &block will run after the :before/:around callbacks and before the :after...