Module | Sequel::Plugins::TypecastOnLoad::InstanceMethods |
In: |
lib/sequel/plugins/typecast_on_load.rb
|
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 60: def load_typecast 61: model.typecast_on_load_columns.each do |c| 62: if v = values[c] 63: set_column_value("#{c}=", v) 64: end 65: end 66: _changed_columns.clear 67: self 68: end