mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user