method
values_list
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::InsertAll::Builder
values_list()public
No documentation available.
# File activerecord/lib/active_record/insert_all.rb, line 126
def values_list
types = extract_types_from_columns_on(model.table_name, keys: keys)
values_list = insert_all.map_key_with_value do |key, value|
connection.with_yaml_fallback(types[key].serialize(value))
end
Arel::InsertManager.new.create_values_list(values_list).to_sql
end