diff options
author | rohit <rohit.arondekar@gmail.com> | 2010-06-25 17:33:36 +0530 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-26 00:27:31 +0200 |
commit | cae33c41589373d62c76e2bb3cdb3fa023ec8521 (patch) | |
tree | 43a4545cd46be58cccfa49120712659ba5dd9aba /activesupport | |
parent | 158e22dae006b7e630cdb20e6e37cf93fd8d1c56 (diff) | |
download | rails-cae33c41589373d62c76e2bb3cdb3fa023ec8521.tar.gz rails-cae33c41589373d62c76e2bb3cdb3fa023ec8521.tar.bz2 rails-cae33c41589373d62c76e2bb3cdb3fa023ec8521.zip |
Remove previously defined class method logger to supress warnings in Active Support test suites. [#4618 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r-- | 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 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 |