mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #15392 from arthurnn/move_open_transactions
Keep closer to other methods that touch @transaction
This commit is contained in:
commit
37c7774504
2 changed files with 4 additions and 4 deletions
|
@ -227,6 +227,10 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
def open_transactions
|
||||
@transaction.number
|
||||
end
|
||||
|
||||
def current_transaction #:nodoc:
|
||||
@transaction
|
||||
end
|
||||
|
|
|
@ -325,10 +325,6 @@ module ActiveRecord
|
|||
@connection
|
||||
end
|
||||
|
||||
def open_transactions
|
||||
@transaction.number
|
||||
end
|
||||
|
||||
def create_savepoint(name = nil)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue