Alias reconnect! to reset! for Mysql2 adapter since they have same

behavior.
This commit is contained in:
Waseem Ahmad 2012-02-12 12:05:39 +05:30
parent d822a651c2
commit caa21e42b8
1 changed files with 1 additions and 5 deletions

View File

@ -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 = [])