Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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>
  • Loading branch information...
commit a64cc69d6115e671f72842042364fb5fdff09ee6 1 parent 1620f57
@neerajdotname neerajdotname authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/base.rb
View
2  activerecord/lib/active_record/base.rb
@@ -421,7 +421,7 @@ def subclasses
@@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
Please sign in to comment.
Something went wrong with that request. Please try again.