If the associated class’s primary key column type is integer, typecast all provided values to integer before using them.
# File lib/sequel/plugins/association_pks.rb, line 95 95: def convert_pk_array(opts, pks) 96: if klass = opts.associated_class and sch = klass.db_schema and col = sch[klass.primary_key] and col[:type] == :integer 97: pks.map{|pk| model.db.typecast_value(:integer, pk)} 98: else 99: pks 100: end 101: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.