instance method
sti_name
Ruby on Rails 7.2.3
Since v3.2.22.5Signature
sti_name()
Returns the value to be stored in the inheritance column for STI.
Source
# File activerecord/lib/active_record/inheritance.rb, line 187
def sti_name
store_full_sti_class && store_full_class_name ? name : name.demodulize
end
Defined in activerecord/lib/active_record/inheritance.rb line 187
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Inheritance::ClassMethods