Class: ActiveSupport::Callbacks::CallbackChain::DefaultTerminator
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | activesupport/lib/active_support/callbacks.rb |
Instance Method Summary
Instance Method Details
#call(target, result_lambda)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 726
def call(target, result_lambda) terminate = true catch(:abort) do result_lambda.call terminate = false end terminate end
#call_direct(target, user_callback, value)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 735
def call_direct(target, user_callback, value) terminate = true catch(:abort) do user_callback.call(target, value) terminate = false end terminate end