Module: PaperTrailAssociationTracking::PaperTrail::ClassMethods

Defined in:
lib/paper_trail_association_tracking/paper_trail.rb

Instance Method Summary collapse

Instance Method Details

#transaction?Boolean

Returns:

  • (Boolean)

6
7
8
# File 'lib/paper_trail_association_tracking/paper_trail.rb', line 6

def transaction?
  ::ActiveRecord::Base.connection.open_transactions.positive?
end