The columns to typecast on load for this model.
Add additional columns to typecast on load for this model.
# File lib/sequel/plugins/typecast_on_load.rb, line 35 def add_typecast_on_load_columns(*columns) @typecast_on_load_columns.concat(columns) end
Give the subclass a copy of the typecast on load columns.
# File lib/sequel/plugins/typecast_on_load.rb, line 40 def inherited(subclass) super subclass.instance_variable_set(:@typecast_on_load_columns, typecast_on_load_columns.dup) end