From cae33c41589373d62c76e2bb3cdb3fa023ec8521 Mon Sep 17 00:00:00 2001 From: rohit Date: Fri, 25 Jun 2010 17:33:36 +0530 Subject: Remove previously defined class method logger to supress warnings in Active Support test suites. [#4618 state:open] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- activesupport/lib/active_support/log_subscriber.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index a1ffb8eece..891d718af3 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -36,6 +36,10 @@ module ActiveSupport class_attribute :logger + class << self + remove_method :logger + end + def self.logger @logger ||= Rails.logger if defined?(Rails) end -- cgit v1.2.3