The ongoing discussions about ActiveSupport in Hooks lead me to believe that ActiveSupport is not as popular as i thought it is. Don’t get me wrong, I didn’t get misleaded by comments like ActiveSupport sucks and monkey craps on too many classes although some of this is true 😀 It has wonderful helper methods and… Continue reading Hooks goes without ActiveSupport and still has inheritable attributes
Callbacks are executable things, like a Proc or methods in Ruby, whereas a hook is usually a spot in your code where you want to execute a certain subset of callbacks. Or, precisely, callbacks that are associated to the hook. I have lots of these places throughout my libraries, and after playing around with ActiveSupport::Callbacks… Continue reading Hooks and callbacks for Ruby. But simple.