Class: ActiveSupport::Callbacks::Filters::Around

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/callbacks.rb

Instance Method Summary collapse

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