From 50f538b72bbe6657627c9efe55b65d167956d1b7 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 6 May 2006 23:37:56 +0000 Subject: Allow :uniq => true with has_many :through associations. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/associations/has_many_association.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'activerecord/lib/active_record/associations/has_many_association.rb') diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index 56368f4198..912e0aa390 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -106,14 +106,6 @@ module ActiveRecord end end end - - def find_target - if @reflection.options[:finder_sql] - @reflection.klass.find_by_sql(@finder_sql) - else - find(:all) - end - end def count_records count = if has_cached_counter? -- cgit v1.2.3