Method: ActiveSupport::Cache::Store#mute
- Defined in:
- lib/active_support/cache.rb
#mute ⇒ Object
Silences the logger within a block.
330 331 332 333 334 335 |
# File 'lib/active_support/cache.rb', line 330 def mute previous_silence, @silence = @silence, true yield ensure @silence = previous_silence end |