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