Method: ActiveSupport::Callbacks::ClassMethods#normalize_callback_params
- Defined in:
- lib/active_support/callbacks.rb
#normalize_callback_params(filters, block) ⇒ Object
:nodoc:
549 550 551 552 553 554 |
# File 'lib/active_support/callbacks.rb', line 549 def normalize_callback_params(filters, block) # :nodoc: type = CALLBACK_FILTER_TYPES.include?(filters.first) ? filters.shift : :before = filters. filters.unshift(block) if block [type, filters, .dup] end |