diff options
author | Pavel Pravosud <pavel@pravosud.com> | 2012-12-15 20:57:45 +0700 |
---|---|---|
committer | Pavel Pravosud <pavel@pravosud.com> | 2012-12-15 20:57:45 +0700 |
commit | bb1d3c1f8eae54abae0f97440d6986e25b528b86 (patch) | |
tree | 0ede62b0f6facc935c732b36ba6907dc4270a051 /activesupport/lib | |
parent | 8f8397e0a4ea2bbc27d4bba60088286217314807 (diff) | |
download | rails-bb1d3c1f8eae54abae0f97440d6986e25b528b86.tar.gz rails-bb1d3c1f8eae54abae0f97440d6986e25b528b86.tar.bz2 rails-bb1d3c1f8eae54abae0f97440d6986e25b528b86.zip |
AS::BasicObject can be inherited from
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/basic_object.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/basic_object.rb b/activesupport/lib/active_support/basic_object.rb index 242b766b58..d4d06b2aa4 100644 --- a/activesupport/lib/active_support/basic_object.rb +++ b/activesupport/lib/active_support/basic_object.rb @@ -1,7 +1,12 @@ require 'active_support/deprecation' +require 'active_support/proxy_object' module ActiveSupport # :nodoc: - # Deprecated in favor of ActiveSupport::ProxyObject - BasicObject = Deprecation::DeprecatedConstantProxy.new('ActiveSupport::BasicObject', 'ActiveSupport::ProxyObject') + class BasicObject < ProxyObject + def self.inherited(*) + ::ActiveSupport::Deprecation.warn 'ActiveSupport::BasicObject is deprecated! Use ActiveSupport::ProxyObject instead.' + super + end + end end |