Debug the filter chain of a controller
FooController._process_action_callbacks.map(&:filter)
#=> [:handle_password_change, :activate_draper, ...]
Or a bit more detailed:
FooController._process_action_callbacks.map { |c| [c.kind, c.filter] }
#=> [[:before, :handle_password_change], [:before, :activate_draper], ...]
Written by Michael Kohl
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#