This method is deprecated or moved on the latest stable version.
The last existing version (v4.0.2) is shown here.
silence()
public
Silence the logger during the execution of the block.
# File activesupport/lib/active_support/benchmarkable.rb, line 50
def silence
message = "ActiveSupport::Benchmarkable#silence is deprecated. It will be removed from Rails 4.1."
ActiveSupport::Deprecation.warn message
old_logger_level, logger.level = logger.level, ::Logger::ERROR if logger
yield
ensure
logger.level = old_logger_level if logger
end