diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 15:03:06 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-16 01:49:29 +0530 |
commit | aa4d03fcfc42453b5553c001d24933365effe5f0 (patch) | |
tree | ee4faa7242b82ce806941259a90be7e3c44c4a3f /activerecord | |
parent | 18402b5d649658a4046769a6d74b76a6731f7c94 (diff) | |
download | rails-aa4d03fcfc42453b5553c001d24933365effe5f0.tar.gz rails-aa4d03fcfc42453b5553c001d24933365effe5f0.tar.bz2 rails-aa4d03fcfc42453b5553c001d24933365effe5f0.zip |
construct_joins no longer needs an argument
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/through_association_scope.rb | 2 |
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 |