Skip to content

Commit a64cc69

Browse files
Neeraj Singhjosevalim
authored andcommitted
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>
1 parent 1620f57 commit a64cc69

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/active_record

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def subclasses
421421
@@timestamped_migrations = true
422422

423423
# Determine whether to store the full constant name including namespace when using STI
424-
superclass_delegating_accessor :store_full_sti_class
424+
class_attribute :store_full_sti_class
425425
self.store_full_sti_class = true
426426

427427
# Stores the default scope for the class

0 commit comments

Comments
 (0)