Permalink
Browse files

Allow joining a StringJoin with another join relation.

  • Loading branch information...
1 parent 808b9e9 commit 5dcbca25cef8e8f5809913977cfeb4366c8b44d0 @miloops miloops committed Aug 14, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/arel/engines/sql/relations/operations/join.rb
View
4 lib/arel/engines/sql/relations/operations/join.rb
@@ -26,8 +26,8 @@ def join_sql; "LEFT OUTER JOIN" end
end
class StringJoin < Join
- def joins(_, __ = nil)
- relation2
+ def joins(environment, formatter = Sql::TableReference.new(environment))
+ [relation1.joins(environment), relation2].compact.join(" ")
end
end
end

0 comments on commit 5dcbca2

Please sign in to comment.