提交 1f9f78b1 编写于 作者: C Carlos Antonio da Silva

Merge pull request #11651 from neerajdotname/log_should_mimick_original_log_method

interceptor should mimick original method
......@@ -124,7 +124,7 @@ module LogIntercepter
def self.extended(base)
base.logged = []
end
def log(sql, name, binds = [], &block)
def log(sql, name = 'SQL', binds = [], &block)
if @intercepted
@logged << [sql, name, binds]
yield
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册