Set the sti_key column based on the sti_key_map.
# File lib/sequel/plugins/single_table_inheritance.rb, line 159 def before_create send("#{model.sti_key}=", model.sti_key_map[model]) unless send(model.sti_key) super end
[Validate]
Generated with the Darkfish Rdoc Generator 2.