aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorWolfram Arnold <wolfram@handl.it>2013-07-17 18:19:13 -0700
committerWolfram Arnold <wolfram@handl.it>2013-07-17 18:26:55 -0700
commit803008eb97487614e865ba3428ca2658dc11901b (patch)
treec85d0a525b5010aefe3c10854848765e1d39d382 /activesupport/lib
parentfc0faaa5905eab7f2a70b1d5b5aa06bd7b43d7fd (diff)
downloadrails-803008eb97487614e865ba3428ca2658dc11901b.tar.gz
rails-803008eb97487614e865ba3428ca2658dc11901b.tar.bz2
rails-803008eb97487614e865ba3428ca2658dc11901b.zip
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.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/tagged_logging.rb4
1 files changed, 4 insertions, 0 deletions
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