1
0
Fork 0
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:
Rafael Mendonça França 2014-05-28 16:23:56 -03:00
commit 37c7774504
2 changed files with 4 additions and 4 deletions

View file

@ -227,6 +227,10 @@ module ActiveRecord
end
end
def open_transactions
@transaction.number
end
def current_transaction #:nodoc:
@transaction
end

View file

@ -325,10 +325,6 @@ module ActiveRecord
@connection
end
def open_transactions
@transaction.number
end
def create_savepoint(name = nil)
end