Method: ActiveRecord::Transactions::ClassMethods#transaction

Defined in:
activerecord/lib/active_record/transactions.rb

#transaction(**options, &block) ⇒ Object

See the ConnectionAdapters::DatabaseStatements#transaction API docs.



211
212
213
# File 'activerecord/lib/active_record/transactions.rb', line 211

def transaction(**options, &block)
  connection.transaction(**options, &block)
end