[Rails-core] Suggestion: to extract AC filter methods

2012-10-17 Thread Alexander Kurakin
Suggestion: to extract AbstractController::Callbacks::ClassMethods (maybe to ActiveSupport). Mechanism 'before/after/around' isn't connected with controllers only. Is it? Why not to consider it with ActiveSupport::Callbacks? It will make a possibility to do your own events for

Re: [Rails-core] Suggestion: to extract AC filter methods

2012-10-17 Thread Ryan Bigg
You can already use ActiveSupport::Callbacks for this. I think the documentation for this class is thorough and should give you a good understand of how it works. On 18 October 2012 06:21, Alexander Kurakin kuraga...@mail.ru wrote: Suggestion: to extract