global
def open_transaction?
def open_transaction? pool = ActiveRecord::Base.connection_pool pool.active_connection? && pool.connection.open_transactions.positive? end
def open_transaction? pool = ActiveRecord::Base.connection_pool pool.active_connection? && pool.connection.open_transactions.positive? end