Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5012 from waseem/alias-reconnect-mysql2

Alias reconnect! to reset! for Mysql2 adapter since they have same behavior.
  • Loading branch information...
commit 3a5a01f7f6af2456acab1b662f618f326002ee5f 2 parents 9bcfb1a + caa21e4
@tenderlove tenderlove authored
View
6 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -80,6 +80,7 @@ def reconnect!
disconnect!
connect
end
+ alias :reset! :reconnect!
# Disconnects from the database if already connected.
# Otherwise, this method does nothing.
@@ -90,11 +91,6 @@ def disconnect!
end
end
- def reset!
- disconnect!
- connect
- end
-
# DATABASE STATEMENTS ======================================
def explain(arel, binds = [])
Please sign in to comment.
Something went wrong with that request. Please try again.