Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

behavior.
  • Loading branch information...
commit caa21e42b831ef8fc6d6600ddc6ec37a1bb6ac1a 1 parent d822a65
@waseem waseem 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.