Permalink
Browse files

Merge pull request #11651 from neerajdotname/log_should_mimick_origin…

…al_log_method

interceptor should mimick original method
  • Loading branch information...
2 parents 06c1a5f + d6c812c commit 1f9f78b1113f30443c19061d00312c75dc96b22a @carlosantoniodasilva carlosantoniodasilva committed Jul 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/helper.rb
@@ -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

0 comments on commit 1f9f78b

Please sign in to comment.