method
silence
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::Deprecation::Reporting
silence()public
Silence deprecation warnings within the block.
ActiveSupport::Deprecation.warn('something broke!') # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)" ActiveSupport::Deprecation.silence do ActiveSupport::Deprecation.warn('something broke!') end # => nil