method

prepend_around_filter

Importance_1
v1.0.0 - Show latest stable - 0 notes - Class: ActionController::Filters::ClassMethods
prepend_around_filter(*filters) public

The passed filters will have their before method prepended to the array of filters that’s run both before actions on this controller are performed and have their after method appended to the after actions. The filter objects must all respond to both before and after. So if you do prepend_around_filter A.new, B.new, the callstack will look like:

  A#before
    B#before
    B#after
  A#after
Show source
Register or log in to add new notes.