mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
interceptor should mimick original method
This fix also makes the test order independent.
This commit is contained in:
parent
b67a80de9b
commit
d6c812caf6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue