Method: ActiveRecord::Inheritance::ClassMethods#sti_name
- Defined in:
- activerecord/lib/active_record/inheritance.rb
#sti_name ⇒ Object
Returns the value to be stored in the inheritance column for STI.
187 188 189 |
# File 'activerecord/lib/active_record/inheritance.rb', line 187 def sti_name store_full_sti_class && store_full_class_name ? name : name.demodulize end |