lib/active_support/benchmarkable.rb in activesupport-4.0.13 vs lib/active_support/benchmarkable.rb in activesupport-4.1.0.beta1
- old
+ new
@@ -43,17 +43,7 @@
result
else
yield
end
end
-
- # Silence the logger during the execution of the block.
- 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
end
end