Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix 1.8.7 incompatible respond_to_missing

  • Loading branch information...
commit adf6e30e3ad448c1edf2878255922a3faaa77c99 1 parent 6d9050b
Eugene Kalenkovich authored guilleiguaran committed
Showing with 8 additions and 2 deletions.
  1. +8 −2 activesupport/lib/active_support/tagged_logging.rb
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.