diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-09-10 23:04:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-09-10 23:04:01 +0900 |
commit | 33f5b0776084109055ad422f29dfe2f21e16799d (patch) | |
tree | 826adac0ede4966df4342b0d6fa9f5d27216ecdd /activerecord/lib | |
parent | cf5f55cd30aef0f90300c7c8f333060fe258cd8a (diff) | |
download | rails-33f5b0776084109055ad422f29dfe2f21e16799d.tar.gz rails-33f5b0776084109055ad422f29dfe2f21e16799d.tar.bz2 rails-33f5b0776084109055ad422f29dfe2f21e16799d.zip |
Remove unnecessry `alias uniq distinct` for collection association
`CollectionAssociation` is internal class and `uniq` is not called.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 1 |
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. |