diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 05:57:08 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-15 05:57:08 -0700 |
commit | 1b7894c95b1bdd2a3dca204629b66060f8a16bca (patch) | |
tree | c28bf38cd68c5e74c867ed160f157db3ad898ebf /activesupport/lib | |
parent | 3ec6783613e062da231d9a0d335cbf61bfad4bb4 (diff) | |
parent | ed2fea908a9f8540ac2ea949e3e258ab88769cb1 (diff) | |
download | rails-1b7894c95b1bdd2a3dca204629b66060f8a16bca.tar.gz rails-1b7894c95b1bdd2a3dca204629b66060f8a16bca.tar.bz2 rails-1b7894c95b1bdd2a3dca204629b66060f8a16bca.zip |
Merge pull request #7643 from steveklabnik/deprecate_silence
Deprecate ActiveSupport::Benchmarkable#silence.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/benchmarkable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/benchmarkable.rb b/activesupport/lib/active_support/benchmarkable.rb index f149a7f0ed..1b391697e6 100644 --- a/activesupport/lib/active_support/benchmarkable.rb +++ b/activesupport/lib/active_support/benchmarkable.rb @@ -46,6 +46,7 @@ module ActiveSupport # Silence the logger during the execution of the block. # def silence + ActiveSupport::Deprecation.warn "ActiveSupport::Benchmarkable#silence is deprecated. It will be removed from Rails 4.1." old_logger_level, logger.level = logger.level, ::Logger::ERROR if logger yield ensure |