diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-28 16:59:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-28 16:59:38 -0700 |
commit | ef2392f60bb1dae27f418e506eca56c9422e8f46 (patch) | |
tree | c72db575923f4767ce0269e0a94ae417edd7fa13 /activerecord | |
parent | e6ca7e7197f46df0e538f50cea236cb923e4b47f (diff) | |
download | rails-ef2392f60bb1dae27f418e506eca56c9422e8f46.tar.gz rails-ef2392f60bb1dae27f418e506eca56c9422e8f46.tar.bz2 rails-ef2392f60bb1dae27f418e506eca56c9422e8f46.zip |
removing unused lasgns
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index bdd171135c..502a220f5b 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -149,7 +149,7 @@ module ActiveRecord end def custom_join_sql(*joins) - arel = table + arel = table.select_manager joins.each do |join| next if join.blank? @@ -160,12 +160,12 @@ module ActiveRecord when Hash, Array, Symbol if array_of_strings?(join) join_string = join.join(' ') - arel = arel.join(Arel::SqlLiteral.new(join_string)) + arel.join(Arel::SqlLiteral.new(join_string)) end when String - arel = arel.join(Arel::SqlLiteral.new(join)) + arel.join(Arel::SqlLiteral.new(join)) else - arel = arel.join(join) + arel.join(join) end end |