aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-07-28 16:26:50 -0400
committerJosé Valim <jose.valim@gmail.com>2010-08-31 17:45:06 +0200
commita64cc69d6115e671f72842042364fb5fdff09ee6 (patch)
treeb94e207258c0128f8e71f6599b341972831a4326 /activerecord/lib
parent1620f572bff9cd503e67480975bd0a652a77cf8e (diff)
downloadrails-a64cc69d6115e671f72842042364fb5fdff09ee6.tar.gz
rails-a64cc69d6115e671f72842042364fb5fdff09ee6.tar.bz2
rails-a64cc69d6115e671f72842042364fb5fdff09ee6.zip
Replacing superclass_delegating_accessoror with class_attribute.
:store_full_sti_class will have value true or false so there is no danger of mutability here. Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index a73a9d5fef..f465a38dbe 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -421,7 +421,7 @@ module ActiveRecord #:nodoc:
@@timestamped_migrations = true
# Determine whether to store the full constant name including namespace when using STI
- superclass_delegating_accessor :store_full_sti_class
+ class_attribute :store_full_sti_class
self.store_full_sti_class = true
# Stores the default scope for the class