From 803008eb97487614e865ba3428ca2658dc11901b Mon Sep 17 00:00:00 2001 From: Wolfram Arnold Date: Wed, 17 Jul 2013 18:19:13 -0700 Subject: Add respond_to_missing? for TaggedLogging which is needed if another log abstracter wraps a TaggedLogging instance. It's also best practice when overriding method_missing. --- activesupport/lib/active_support/tagged_logging.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index 6fff3bc0d4..4b23a1399c 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -72,6 +72,10 @@ module ActiveSupport @logger.send(method, *args) end + def respond_to_missing?(*args) + @logger.respond_to? *args + end + private def tags_text tags = current_tags -- cgit v1.2.3