aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/tagged_logging.rb10
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