method

prepend_around_filter

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionController::Filters::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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.