Class: ActiveSupport::Callbacks::Filters::Around
- Defined in:
- lib/active_support/callbacks.rb
Instance Method Summary collapse
- #apply(callback_sequence) ⇒ Object
-
#initialize(user_callback, user_conditions) ⇒ Around
constructor
A new instance of Around.
Constructor Details
#initialize(user_callback, user_conditions) ⇒ Around
Returns a new instance of Around.
219 220 221 222 |
# File 'lib/active_support/callbacks.rb', line 219 def initialize(user_callback, user_conditions) @user_callback, @user_conditions = user_callback, user_conditions freeze end |
Instance Method Details
#apply(callback_sequence) ⇒ Object
224 225 226 |
# File 'lib/active_support/callbacks.rb', line 224 def apply(callback_sequence) callback_sequence.around(@user_callback, @user_conditions) end |