method
scope_for_create
rails latest stable - Class:
ActiveRecord::Relation
scope_for_create()public
No documentation available.
# File activerecord/lib/active_record/relation.rb, line 791
def scope_for_create
hash = where_clause.to_h(klass.table_name, equality_only: true)
create_with_value.each { |k, v| hash[k.to_s] = v } unless create_with_value.empty?
hash
end