We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ActiveModel::Type::SerializeCastValue
InsertAll
1 parent df99121 commit 25d2a63Copy full SHA for 25d2a63
activerecord/lib/active_record/insert_all.rb
@@ -240,7 +240,7 @@ def values_list
240
241
values_list = insert_all.map_key_with_value do |key, value|
242
next value if Arel::Nodes::SqlLiteral === value
243
- types[key].serialize(types[key].cast(value))
+ ActiveModel::Type::SerializeCastValue.serialize(type = types[key], type.cast(value))
244
end
245
246
connection.visitor.compile(Arel::Nodes::ValuesList.new(values_list))
0 commit comments