1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24730 from vipulnsward/move-savepoints

Move remaining current_savepoint_name to savepoints module
This commit is contained in:
Rafael França 2016-04-25 19:19:58 -03:00
commit 4a4eedb240
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,10 @@
module ActiveRecord
module ConnectionAdapters
module Savepoints
def current_savepoint_name
current_transaction.savepoint_name
end
def create_savepoint(name = current_savepoint_name)
execute("SAVEPOINT #{name}")
end

View file

@ -431,10 +431,6 @@ module ActiveRecord
end
private :can_perform_case_insensitive_comparison_for?
def current_savepoint_name
current_transaction.savepoint_name
end
# Check the connection back in to the connection pool
def close
pool.checkin self