Flowdock
method

silence

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Reporting
silence(&block) 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
Show source
Register or log in to add new notes.