Flowdock
method

set_options_for_callbacks!

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: ActiveRecord::Transactions::ClassMethods
set_options_for_callbacks!(args, enforced_options = {}) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/transactions.rb, line 280
        def set_options_for_callbacks!(args, enforced_options = {})
          options = args.extract_options!.merge!(enforced_options)
          args << options

          if options[:on]
            fire_on = Array(options[:on])
            assert_valid_transaction_action(fire_on)
            options[:if] = Array(options[:if])
            options[:if].unshift(-> { transaction_include_any_action?(fire_on) })
          end
        end
Register or log in to add new notes.