Skip to content

Commit

Permalink
Remove previously defined class method logger to supress warnings in …
Browse files Browse the repository at this point in the history
…Active Support test suites. [#4618 state:open]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
rohitarondekar authored and josevalim committed Jun 25, 2010
1 parent 158e22d commit cae33c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activesupport/lib/active_support/log_subscriber.rb
Expand Up @@ -36,6 +36,10 @@ class LogSubscriber

class_attribute :logger

class << self
remove_method :logger
end

def self.logger
@logger ||= Rails.logger if defined?(Rails)
end
Expand Down

0 comments on commit cae33c4

Please sign in to comment.