提交 b9ce3419 编写于 作者: R Robert Pankowecki (Gavdi) 提交者: Aaron Patterson

User id instead of quoted_id to prevent double quoting. Fixes failing test for bug #6036.

上级 febdf5a5
......@@ -20,7 +20,7 @@ def self.build_from_hash(engine, attributes, default_table)
case value
when Array, ActiveRecord::Associations::AssociationCollection, ActiveRecord::Relation
values = value.to_a.map { |x|
x.respond_to?(:quoted_id) ? x.quoted_id : x
x.is_a?(ActiveRecord::Base) ? x.id : x
}
attribute.in(values)
when Range, Arel::Relation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册