instance method
in_transaction?
Ruby on Rails edge
Since v5.0.7.2 Private — implementation detail, not part of the public APISignature
in_transaction?()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 1091
def in_transaction?
open_transactions > 0
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 1091
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter