method
map_key_with_value
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::InsertAll
map_key_with_value()public
No documentation available.
# File activerecord/lib/active_record/insert_all.rb, line 55
def map_key_with_value
inserts.map do |attributes|
attributes = attributes.stringify_keys
attributes.merge!(scope_attributes) if scope_attributes
verify_attributes(attributes)
keys.map do |key|
yield key, attributes[key]
end
end
end