aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-12-23 20:50:51 +0000
committerJon Leighton <j@jonathanleighton.com>2010-12-26 19:38:04 +0000
commitd7a659334cf5b342156682758f971308021deb4a (patch)
tree2b129a711bf01b804825ff458a105a7fdf5e8284 /activerecord/lib/active_record
parent93861d19e3571206baf51af710cb3f2bd2c65bde (diff)
downloadrails-d7a659334cf5b342156682758f971308021deb4a.tar.gz
rails-d7a659334cf5b342156682758f971308021deb4a.tar.bz2
rails-d7a659334cf5b342156682758f971308021deb4a.zip
Remove construct_from from ThroughAssociationScope - it's not called from anywhere
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/through_association_scope.rb4
1 files changed, 0 insertions, 4 deletions
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