method
add_to_target
rails 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 277
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