method
remove_uniq_by_reflection
v3.2.1 -
Show latest stable
- Class:
ActiveRecord::Associations::JoinDependency
remove_uniq_by_reflection(reflection, records)protected
No documentation available.
# File activerecord/lib/active_record/associations/join_dependency.rb, line 145
def remove_uniq_by_reflection(reflection, records)
if reflection && reflection.collection?
records.each { |record| record.send(reflection.name).target.uniq! }
end
end