Permalink
Browse files

Fix 1.8.7 incompatible respond_to_missing

  • Loading branch information...
1 parent 6d9050b commit adf6e30e3ad448c1edf2878255922a3faaa77c99 Eugene Kalenkovich committed with guilleiguaran Aug 18, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 activesupport/lib/active_support/tagged_logging.rb
@@ -72,8 +72,14 @@ def method_missing(method, *args)
@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

0 comments on commit adf6e30

Please sign in to comment.