Methods

Class Index [+]

Quicksearch

Sequel::Plugins::SingleTableInheritance::InstanceMethods

Public Instance Methods

before_create() click to toggle source

Set the sti_key column based on the sti_key_map.

     # File lib/sequel/plugins/single_table_inheritance.rb, line 161
161:         def before_create
162:           send("#{model.sti_key}=", model.sti_key_map[model]) unless self[model.sti_key]
163:           super
164:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.