123456789_123456789_123456789_123456789_123456789_

Module: AbstractController::Callbacks

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Defined in: actionpack/lib/abstract_controller/callbacks.rb

Constant Summary

::ActiveSupport::Callbacks - Included

CALLBACK_FILTER_TYPES

Class Method Summary

::ActiveSupport::DescendantsTracker - self

clear, descendants, direct_descendants,
store_inherited

This is the only method that is not thread safe, but is only ever called during the eager loading phase.

::ActiveSupport::Concern - Extended

Instance Method Summary

  • #process_action(*args)

    Override AbstractController::Base's process_action to run the process_action callbacks around the normal behavior.

::ActiveSupport::Callbacks - Included

#run_callbacks

Runs the callbacks for the given event.

DSL Calls

included

[ GitHub ]


10
11
12
13
14
# File 'actionpack/lib/abstract_controller/callbacks.rb', line 10

included do
  define_callbacks :process_action,
                   terminator: ->(controller,_) { controller.response_body },
                   skip_after_callbacks_if_terminated: true
end

Instance Method Details

#process_action(*args)

Override AbstractController::Base's process_action to run the process_action callbacks around the normal behavior.

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/callbacks.rb', line 18

def process_action(*args)
  run_callbacks(:process_action) do
    super
  end
end