提交 3a5a01f7 编写于 作者: A Aaron Patterson

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

Alias reconnect! to reset! for Mysql2 adapter since they have same behavior.
......@@ -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 = [])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册