Module: ActiveRecord::ConnectionAdapters::SQLServerRealTransaction

Defined in:
lib/active_record/connection_adapters/sqlserver/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#starting_isolation_levelObject (readonly)

Returns the value of attribute starting_isolation_level.



26
27
28
# File 'lib/active_record/connection_adapters/sqlserver/transaction.rb', line 26

def starting_isolation_level
  @starting_isolation_level
end

Instance Method Details

#commitObject



34
35
36
37
# File 'lib/active_record/connection_adapters/sqlserver/transaction.rb', line 34

def commit
  super
  reset_starting_isolation_level
end

#initialize(connection, options) ⇒ Object



28
29
30
31
32
# File 'lib/active_record/connection_adapters/sqlserver/transaction.rb', line 28

def initialize(connection, options)
  @connection = connection
  @starting_isolation_level = current_isolation_level if options[:isolation]
  super
end