instance method
polymorphic_name
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
polymorphic_name()
Returns the value to be stored in the polymorphic type column for Polymorphic Associations.
Source
# File activerecord/lib/active_record/inheritance.rb, line 211
def polymorphic_name
store_full_class_name ? base_class.name : base_class.name.demodulize
end
Defined in activerecord/lib/active_record/inheritance.rb line 211
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Inheritance::ClassMethods