Method: Sequel::Plugins::SingleTableInheritance::ClassMethods#sti_key_map
- Defined in:
- lib/sequel/plugins/single_table_inheritance.rb
permalink #sti_key_map ⇒ Object (readonly)
A hash/proc with class keys and column value values, mapping the class to a particular value given to the sti_key column. Used to set the column value when creating objects, and for the filter when retrieving objects in subclasses.
143 144 145 |
# File 'lib/sequel/plugins/single_table_inheritance.rb', line 143 def sti_key_map @sti_key_map end |