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 51 51: def load_typecast 52: model.typecast_on_load_columns.each do |c| 53: if v = values[c] 54: set_column_value("#{c}=", v) 55: end 56: end 57: changed_columns.clear 58: self 59: end