Permalink
Browse files

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

behavior.
  • Loading branch information...
1 parent d822a65 commit caa21e42b831ef8fc6d6600ddc6ec37a1bb6ac1a @waseem waseem committed Feb 12, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 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 = [])

0 comments on commit caa21e4

Please sign in to comment.