diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-29 06:58:35 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-29 06:58:35 -0700 |
commit | 1f9f78b1113f30443c19061d00312c75dc96b22a (patch) | |
tree | c7f95ca2060f44741e56cffb073f56e739ec9af3 | |
parent | 06c1a5f9fefad61d7a511192b6e54526c6af5305 (diff) | |
parent | d6c812caf6763b104b33ee18f3cbc383e8bd02eb (diff) | |
download | rails-1f9f78b1113f30443c19061d00312c75dc96b22a.tar.gz rails-1f9f78b1113f30443c19061d00312c75dc96b22a.tar.bz2 rails-1f9f78b1113f30443c19061d00312c75dc96b22a.zip |
Merge pull request #11651 from neerajdotname/log_should_mimick_original_log_method
interceptor should mimick original method
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 7dbb6616f8..f96978aff8 100644 --- a/activerecord/test/cases/helper.rb +++ b/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 |