class method
self.silence
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
self.silence()
Silence deprecation warnings within the block.
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 14
def silence
old_silenced, @silenced = @silenced, true
yield
ensure
@silenced = old_silenced
end
Defined in activesupport/lib/active_support/deprecation/reporting.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation