Lookup the conversion proc for the column's oid in the Database object, and use it to convert the value.
# File lib/sequel/plugins/pg_typecast_on_load.rb, line 50 def set_values(values) model.pg_typecast_on_load_columns.each do |c| if (v = values[c]).is_a?(String) && (oid = db_schema[c][:oid]) && (pr = db.conversion_procs[oid]) values[c] = pr.call(v) end end super end
Generated with the Darkfish Rdoc Generator 2.