instance method
mute
Ruby on Rails 5.2.8.1
Since v2.3.18Signature
mute()
Silences the logger within a block.
Source
# File activesupport/lib/active_support/cache.rb, line 194
def mute
previous_silence, @silence = defined?(@silence) && @silence, true
yield
ensure
@silence = previous_silence
end
Defined in activesupport/lib/active_support/cache.rb line 194
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store