aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-14 15:03:06 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-14 15:03:06 -0800
commit7af9ec8a99bbc044af1f08200b4aa350ac64a53d (patch)
tree9d6e881c4bc1de11bf02c09f2c93f1234e85b5a0
parent2e7da54f770d1e076005c7670ab8d99431888faa (diff)
downloadrails-7af9ec8a99bbc044af1f08200b4aa350ac64a53d.tar.gz
rails-7af9ec8a99bbc044af1f08200b4aa350ac64a53d.tar.bz2
rails-7af9ec8a99bbc044af1f08200b4aa350ac64a53d.zip
construct_joins no longer needs an argument
-rw-r--r--activerecord/lib/active_record/associations/through_association_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/through_association_scope.rb b/activerecord/lib/active_record/associations/through_association_scope.rb
index 48386ee124..f6b242168c 100644
--- a/activerecord/lib/active_record/associations/through_association_scope.rb
+++ b/activerecord/lib/active_record/associations/through_association_scope.rb
@@ -54,7 +54,7 @@ module ActiveRecord
custom_select || @reflection.options[:select] || "#{distinct}#{@reflection.quoted_table_name}.*"
end
- def construct_joins(custom_joins = nil)
+ def construct_joins
right = @reflection.through_reflection.klass.arel_table
left = @reflection.klass.arel_table