Module: ActiveRecordCompose::TransactionSupport::ClassMethods
- Defined in:
- lib/active_record_compose/transaction_support.rb
Instance Method Summary collapse
- #composite_primary_key? ⇒ Boolean
- #connection ⇒ Object
- #lease_connection ⇒ Object
-
#with_connection ⇒ Object
steep:ignore.
Instance Method Details
#composite_primary_key? ⇒ Boolean
21 |
# File 'lib/active_record_compose/transaction_support.rb', line 21 def composite_primary_key? = false |
#connection ⇒ Object
17 |
# File 'lib/active_record_compose/transaction_support.rb', line 17 def connection = ar_class.connection |
#lease_connection ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/active_record_compose/transaction_support.rb', line 9 def lease_connection if ar_class.respond_to?(:lease_connection) ar_class.lease_connection # steep:ignore else ar_class.connection end end |
#with_connection ⇒ Object
steep:ignore
19 |
# File 'lib/active_record_compose/transaction_support.rb', line 19 def with_connection(&) = ar_class.with_connection(&) # steep:ignore |