aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-09-18 17:57:04 +0200
committerGitHub <noreply@github.com>2016-09-18 17:57:04 +0200
commit254db4987d03d3c9d3fca1e2961da8fd7dd0e06b (patch)
tree54b9045f63f07aae4220ff3bce9b1fa1d13ff196 /activerecord
parent7ccd32412e617884f21edb240df9030b8e3b58ea (diff)
parent33f5b0776084109055ad422f29dfe2f21e16799d (diff)
downloadrails-254db4987d03d3c9d3fca1e2961da8fd7dd0e06b.tar.gz
rails-254db4987d03d3c9d3fca1e2961da8fd7dd0e06b.tar.bz2
rails-254db4987d03d3c9d3fca1e2961da8fd7dd0e06b.zip
Merge pull request #26448 from kamipo/remove_collection_association_uniq
Remove unnecessry `alias uniq distinct` for collection association
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_association.rb1
1 files changed, 0 insertions, 1 deletions
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.