From d7a659334cf5b342156682758f971308021deb4a Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Thu, 23 Dec 2010 20:50:51 +0000 Subject: Remove construct_from from ThroughAssociationScope - it's not called from anywhere --- .../lib/active_record/associations/through_association_scope.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations/through_association_scope.rb b/activerecord/lib/active_record/associations/through_association_scope.rb index 7a0fa08f66..fa84de533f 100644 --- a/activerecord/lib/active_record/associations/through_association_scope.rb +++ b/activerecord/lib/active_record/associations/through_association_scope.rb @@ -73,10 +73,6 @@ module ActiveRecord end end - def construct_from - @reflection.table_name - end - def construct_select(custom_select = nil) distinct = "DISTINCT #{@reflection.quoted_table_name}.*" if @reflection.options[:uniq] custom_select || @reflection.options[:select] || distinct -- cgit v1.2.3