diff options
author | Xavier Noria <fxn@hashref.com> | 2019-02-21 14:30:55 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-02-21 14:51:28 -0800 |
commit | f2e51e31239e7c1ff9a92996a3e13b128095377c (patch) | |
tree | 596ef9a1634040a7a7f66b73343947ff15d227bd /activesupport | |
parent | 159b9c40dbe10451ba773ced84a39c4ecced21f4 (diff) | |
download | rails-f2e51e31239e7c1ff9a92996a3e13b128095377c.tar.gz rails-f2e51e31239e7c1ff9a92996a3e13b128095377c.tar.bz2 rails-f2e51e31239e7c1ff9a92996a3e13b128095377c.zip |
simplify AS::Dependencies.verbose=
Possible thanks to Zeitwerk 1.3.0.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb index 939ada123d..297bde5534 100644 --- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb +++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb @@ -28,7 +28,7 @@ module ActiveSupport end def verbose=(verbose) - l = verbose ? (logger || Rails.logger).method(:debug) : nil + l = verbose ? logger || Rails.logger : nil Rails.autoloaders.each { |autoloader| autoloader.logger = l } end |