Method: Sequel::Plugins::SingleTableInheritance::ClassMethods#sti_class_from_sti_key
- Defined in:
- lib/sequel/plugins/single_table_inheritance.rb
#sti_class_from_sti_key(key) ⇒ Object
Return the sti class based on one of the keys from sti_model_map.
173 174 175 |
# File 'lib/sequel/plugins/single_table_inheritance.rb', line 173 def sti_class_from_sti_key(key) sti_class(sti_model_map[key]) end |