diff options
author | Eugene Kalenkovich <rubify@softover.com> | 2013-08-18 11:49:02 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-08-18 16:46:44 -0500 |
commit | adf6e30e3ad448c1edf2878255922a3faaa77c99 (patch) | |
tree | f8eeb9ce4d24939e922e395715dd1b67dcc42b57 | |
parent | 6d9050bae4879994782bb5a9e4bd0ac3ae3be3ef (diff) | |
download | rails-adf6e30e3ad448c1edf2878255922a3faaa77c99.tar.gz rails-adf6e30e3ad448c1edf2878255922a3faaa77c99.tar.bz2 rails-adf6e30e3ad448c1edf2878255922a3faaa77c99.zip |
Fix 1.8.7 incompatible respond_to_missing
-rw-r--r-- | activesupport/lib/active_support/tagged_logging.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index 4b23a1399c..232c367d26 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -72,8 +72,14 @@ module ActiveSupport @logger.send(method, *args) end - def respond_to_missing?(*args) - @logger.respond_to? *args + if RUBY_VERSION < '1.9' + def respond_to?(*args) + super || @logger.respond_to?(*args) + end + else + def respond_to_missing?(*args) + @logger.respond_to? *args + end end private |