Module: ActiveRecordCompose::TransactionSupport::ClassMethods

Defined in:
lib/active_record_compose/transaction_support.rb

Instance Method Summary collapse

Instance Method Details

#composite_primary_key?Boolean

Returns:

  • (Boolean)


21
# File 'lib/active_record_compose/transaction_support.rb', line 21

def composite_primary_key? = false

#connectionObject



17
# File 'lib/active_record_compose/transaction_support.rb', line 17

def connection = ar_class.connection

#lease_connectionObject



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_connectionObject

steep:ignore



19
# File 'lib/active_record_compose/transaction_support.rb', line 19

def with_connection(&) = ar_class.with_connection(&) # steep:ignore