Methods

Files

Class/Module Index [+]

Quicksearch

Sequel::Plugins::TypecastOnLoad::InstanceMethods

Public Instance Methods

load_typecast() click to toggle source

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
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.