1
0
Fork 0
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:
Neeraj Singh 2013-07-29 09:38:44 +05:30
parent b67a80de9b
commit d6c812caf6

View file

@ -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