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!
|
disconnect!
|
||||||
connect
|
connect
|
||||||
end
|
end
|
||||||
|
alias :reset! :reconnect!
|
||||||
|
|
||||||
# Disconnects from the database if already connected.
|
# Disconnects from the database if already connected.
|
||||||
# Otherwise, this method does nothing.
|
# Otherwise, this method does nothing.
|
||||||
|
@ -90,11 +91,6 @@ module ActiveRecord
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset!
|
|
||||||
disconnect!
|
|
||||||
connect
|
|
||||||
end
|
|
||||||
|
|
||||||
# DATABASE STATEMENTS ======================================
|
# DATABASE STATEMENTS ======================================
|
||||||
|
|
||||||
def explain(arel, binds = [])
|
def explain(arel, binds = [])
|
||||||
|
|
Loading…
Reference in New Issue