method

prepend_around_filter

Importance_1
v2.2.1 - Show latest stable - 0 notes - Class: ActionController::Filters::ClassMethods
prepend_around_filter(*filters, &block) public

If you prepend_around_filter A.new, B.new, the filter chain looks like:

  A#before
    B#before
      # run the action
    B#after
  A#after

With around filters which yield to the action block, before and after are the code before and after the yield.

Show source
Register or log in to add new notes.