method
map_key_with_value
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::InsertAll
map_key_with_value()public
No documentation available.
# File activerecord/lib/active_record/insert_all.rb, line 73
def map_key_with_value
inserts.map do |attributes|
attributes = attributes.stringify_keys
attributes.merge!(@scope_attributes)
attributes.reverse_merge!(timestamps_for_create) if record_timestamps?
verify_attributes(attributes)
keys_including_timestamps.map do |key|
yield key, attributes[key]
end
end
end