aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-03-20 18:29:09 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-03-20 18:29:09 +0530
commit41548df342197ac5bf2556f3fa508be6e090ca70 (patch)
tree2a3027d7cb2189954ee6e98b46b0d9d95e5e7255 /activesupport/lib
parent8cea8ae278c0e0417e5d58a387cc5d31c0590251 (diff)
downloadrails-41548df342197ac5bf2556f3fa508be6e090ca70.tar.gz
rails-41548df342197ac5bf2556f3fa508be6e090ca70.tar.bz2
rails-41548df342197ac5bf2556f3fa508be6e090ca70.zip
Deprecate Class#superclass_delegating_accessor
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/class/delegating_attributes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb b/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
index c2219beb5a..1c305c5970 100644
--- a/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
@@ -1,5 +1,7 @@
require 'active_support/core_ext/kernel/singleton_class'
require 'active_support/core_ext/module/remove_method'
+require 'active_support/core_ext/module/deprecation'
+
class Class
def superclass_delegating_accessor(name, options = {})
@@ -21,6 +23,8 @@ class Class
end
end
+ deprecate superclass_delegating_accessor: :class_attribute
+
private
# Take the object being set and store it in a method. This gives us automatic
# inheritance behavior, without having to store the object in an instance