From adfab2dcf4003ca564d78d4425566dd2d9cd8b4f Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Tue, 26 May 2015 10:35:14 +0200 Subject: deprecate `Relation#uniq` use `Relation#distinct` instead. See #9683 for the reasons we switched to `distinct`. Here is the discussion that triggered the actual deprecation #20198. `uniq`, `uniq!` and `uniq_value` are still around. They will be removed in the next minor release after Rails 5. --- activerecord/lib/active_record/associations.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib/active_record/associations.rb') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index a3c30642d0..779a3fbbbd 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -266,7 +266,6 @@ module ActiveRecord # others.find(*args) | X | X | X # others.exists? | X | X | X # others.distinct | X | X | X - # others.uniq | X | X | X # others.reset | X | X | X # # === Overriding generated methods -- cgit v1.2.3