From f8cebd892bb1fea4e4c9b63ee1ca84a585791238 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 23 Mar 2017 04:54:58 +0900 Subject: Remove `CollectionProxy#uniq` Since #28473 `uniq` is delegated to `records`, so `CollectionProxy#uniq` is unnecessary. --- activerecord/lib/active_record/associations/collection_proxy.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 3c44296d8c..5d6676f0df 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -743,10 +743,6 @@ module ActiveRecord # # ] #-- - def uniq - load_target.uniq - end - def calculate(operation, column_name) null_scope? ? scope.calculate(operation, column_name) : super end -- cgit v1.2.3