From 33f5b0776084109055ad422f29dfe2f21e16799d Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sat, 10 Sep 2016 23:04:01 +0900 Subject: Remove unnecessry `alias uniq distinct` for collection association `CollectionAssociation` is internal class and `uniq` is not called. --- activerecord/lib/active_record/associations/collection_association.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index 08bd532fb0..e5b3af8252 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -259,7 +259,6 @@ module ActiveRecord seen[record.id] = true unless seen.key?(record.id) end end - alias uniq distinct # Replace this collection with +other_array+. This will perform a diff # and delete/add only records that have changed. -- cgit v1.2.3