Call the setter method for each of the model's typecast_on_load_columns with the current value, so it can be typecasted correctly.
# File lib/sequel/plugins/typecast_on_load.rb, line 60 def load_typecast model.typecast_on_load_columns.each do |c| if v = values[c] set_column_value("#{c}=", v) end end _changed_columns.clear self end
Typecast values using load_typecast when the values are refreshed manually.
# File lib/sequel/plugins/typecast_on_load.rb, line 73 def _refresh_set_values(values) ret = super load_typecast ret end
Typecast values using load_typecast when the values are refreshed automatically after a save.
# File lib/sequel/plugins/typecast_on_load.rb, line 81 def _save_set_values(values) ret = super load_typecast ret end