Method: Sequel::Plugins::SingleTableInheritance::ClassMethods#sti_load

Defined in:
lib/sequel/plugins/single_table_inheritance.rb

#sti_load(r) ⇒ Object

Return an instance of the class specified by sti_key, used by the row_proc.

[View source]

168
169
170
# File 'lib/sequel/plugins/single_table_inheritance.rb', line 168

def sti_load(r)
  sti_class_from_sti_key(r[sti_key]).call(r)
end