silence()
Instance Public methods
Silence deprecation warnings within the block.
1 2 3 4 5 6 7 | 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 |
Please login to continue.