From 1de3db90463d2d55fccf0ce08e40bc00e5742ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 10 Jun 2016 13:30:30 -0400 Subject: Make sure the yielded variable is the logger --- activesupport/lib/active_support/logger.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib/active_support/logger.rb') diff --git a/activesupport/lib/active_support/logger.rb b/activesupport/lib/active_support/logger.rb index a520e8f2f6..92b890dbb0 100644 --- a/activesupport/lib/active_support/logger.rb +++ b/activesupport/lib/active_support/logger.rb @@ -62,14 +62,14 @@ module ActiveSupport if respond_to?(:silence) super(level, &block) else - block.call(level) + block.call(self) end end else if respond_to?(:silence) super(level, &block) else - block.call(level) + block.call(self) end end end -- cgit v1.2.3