method
create_scope
v3.2.1 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
create_scope()private
No documentation available.
# File activerecord/lib/active_record/associations/collection_association.rb, line 445
def create_scope
scoped.scope_for_create.stringify_keys
end 1Note
Return value:
The result of this method is a hash of the following form:
{"table_field"=>"table value", "another_field" => 15, ...}
For example:
{"user_id"=>21}