Module: ActiveRecord::ConnectionAdapters::SQLServerRealTransaction
- Defined in:
- lib/active_record/connection_adapters/sqlserver/transaction.rb
Instance Attribute Summary collapse
-
#starting_isolation_level ⇒ Object
readonly
Returns the value of attribute starting_isolation_level.
Instance Method Summary collapse
Instance Attribute Details
#starting_isolation_level ⇒ Object (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
#commit ⇒ Object
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, ) @connection = connection @starting_isolation_level = current_isolation_level if [:isolation] super end |