From adf6e30e3ad448c1edf2878255922a3faaa77c99 Mon Sep 17 00:00:00 2001 From: Eugene Kalenkovich Date: Sun, 18 Aug 2013 11:49:02 -0700 Subject: Fix 1.8.7 incompatible respond_to_missing --- activesupport/lib/active_support/tagged_logging.rb | 10 ++++++++-- 1 file 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 -- cgit v1.2.3