Skip to content

Instantly share code, notes, and snippets.

@rohitarondekar
Created June 25, 2010 12:09
Show Gist options
  • Save rohitarondekar/452761 to your computer and use it in GitHub Desktop.
Save rohitarondekar/452761 to your computer and use it in GitHub Desktop.
From a9f0c230889bf9933448d0f1e5bef3ae76c22402 Mon Sep 17 00:00:00 2001
From: rohit <rohit.arondekar@gmail.com>
Date: Fri, 25 Jun 2010 17:33:36 +0530
Subject: [PATCH] Remove previously defined class method logger to supress warnings in Active Support test suites. [#4618 state:open]
---
activesupport/lib/active_support/log_subscriber.rb | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb
index a1ffb8e..891d718 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
--
1.7.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment