method
add_to_target
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
add_to_target(record, skip_callbacks: false, replace: false, &block)public
No documentation available.
# File activerecord/lib/active_record/associations/collection_association.rb, line 281
def add_to_target(record, skip_callbacks: false, replace: false, &block)
replace_on_target(record, skip_callbacks, replace: replace || association_scope.distinct_value, &block)
end