Module: ARAfterTransaction::ClassMethods

Defined in:
lib/ar_after_transaction.rb

Instance Method Summary collapse

Instance Method Details

#after_transaction(&block) ⇒ Object


8
9
10
# File 'lib/ar_after_transaction.rb', line 8

def after_transaction(&block)
  connection.after_transaction(&block)
end

#normally_open_transactionsObject


12
13
14
# File 'lib/ar_after_transaction.rb', line 12

def normally_open_transactions
  connection.normally_open_transactions ||= 0
end