Flowdock
method

silence

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: 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
Show source
Register or log in to add new notes.