mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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>
This commit is contained in:
parent
1620f572bf
commit
a64cc69d61
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ module ActiveRecord #:nodoc:
|
||||||
@@timestamped_migrations = true
|
@@timestamped_migrations = true
|
||||||
|
|
||||||
# Determine whether to store the full constant name including namespace when using STI
|
# 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
|
self.store_full_sti_class = true
|
||||||
|
|
||||||
# Stores the default scope for the class
|
# Stores the default scope for the class
|
||||||
|
|
Loading…
Reference in a new issue