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:
commit
4a4eedb240
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue