mirror of https://github.com/rails/rails
Alias reconnect! to reset! for Mysql2 adapter since they have same
behavior.
This commit is contained in:
parent
d822a651c2
commit
caa21e42b8
|
@ -80,6 +80,7 @@ module ActiveRecord
|
|||
disconnect!
|
||||
connect
|
||||
end
|
||||
alias :reset! :reconnect!
|
||||
|
||||
# Disconnects from the database if already connected.
|
||||
# Otherwise, this method does nothing.
|
||||
|
@ -90,11 +91,6 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
def reset!
|
||||
disconnect!
|
||||
connect
|
||||
end
|
||||
|
||||
# DATABASE STATEMENTS ======================================
|
||||
|
||||
def explain(arel, binds = [])
|
||||
|
|
Loading…
Reference in New Issue