aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-25 07:00:35 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-25 07:00:35 -0800
commit95fa0e69de373e741d3797617950c0e2ed76f950 (patch)
tree34ef509491b547e1b3e91605e45d3ed02ee0fa94 /activesupport/lib
parent501175e3ad6d17913a4f97df21fc0b4f9568dcac (diff)
parent433ebbdc4c82fbf0fba7851d73f9f963c105f16d (diff)
downloadrails-95fa0e69de373e741d3797617950c0e2ed76f950.tar.gz
rails-95fa0e69de373e741d3797617950c0e2ed76f950.tar.bz2
rails-95fa0e69de373e741d3797617950c0e2ed76f950.zip
Merge pull request #8607 from senny/8576_cant_inherit_from_deprecated_buffered_logger
ActiveSupport::BufferedLogger can be subclassed
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/buffered_logger.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb
index 0595446189..2e63e67262 100644
--- a/activesupport/lib/active_support/buffered_logger.rb
+++ b/activesupport/lib/active_support/buffered_logger.rb
@@ -2,6 +2,10 @@ require 'active_support/deprecation'
require 'active_support/logger'
module ActiveSupport
- BufferedLogger = ActiveSupport::Deprecation::DeprecatedConstantProxy.new(
- 'BufferedLogger', '::ActiveSupport::Logger')
+ class BufferedLogger < Logger
+ def self.inherited(*)
+ ::ActiveSupport::Deprecation.warn 'ActiveSupport::BufferedLogger is deprecated! Use ActiveSupport::Logger instead.'
+ super
+ end
+ end
end