From 70a86c6e0af44421efd1f1adac963be5291f2341 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 20 Jul 2012 18:36:47 +0100 Subject: Remove obsolete line. This code is broken (it should say association_scope.uniq_value rather than options[:uniq]) but the tests still pass. I think it is designed to uniq-ify associations using finder_sql. However, I am about to remove that anyway. --- activerecord/lib/active_record/associations/collection_association.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib/active_record/associations') diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index 55628c81bb..6ba5ba5228 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -383,7 +383,6 @@ module ActiveRecord scoped.all end - records = options[:uniq] ? uniq(records) : records records.each { |record| set_inverse_instance(record) } records end -- cgit v1.2.3