method
map_key_with_value
rails latest stable - Class:
ActiveRecord::InsertAll
map_key_with_value()public
No documentation available.
# File activerecord/lib/active_record/insert_all.rb, line 67
def map_key_with_value
inserts.map do |attributes|
attributes = attributes.stringify_keys
attributes.merge!(scope_attributes) if 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