Module: TPhases::Rails::NoTransactionsInController::ClassMethods

Defined in:
lib/tphases/rails/no_transactions_in_controller.rb

Instance Method Summary collapse

Instance Method Details

#ensure_no_transactions_on(*actions) ⇒ Object



7
8
9
10
11
# File 'lib/tphases/rails/no_transactions_in_controller.rb', line 7

def ensure_no_transactions_on(*actions)
  actions_array = *actions
  class_variable_set(:@@no_transaction_actions, actions_array.flatten)
  around_filter :no_transactions_around_filter, :only => actions_array
end