Permalink
Browse files

shorten up or sql literal creation statements

  • Loading branch information...
1 parent 8ae8125 commit e080144242282a4570852e4e49807818be1d70ff @tenderlove tenderlove committed Sep 29, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 activerecord/lib/active_record/relation/query_methods.rb
@@ -159,11 +159,9 @@ def custom_join_sql(*joins)
case join
when Array
- if array_of_strings?(join)
- join = Arel::SqlLiteral.new(join.join(' '))
- end
+ join = Arel.sql(join.join(' ')) if array_of_strings?(join)
when String
- join = Arel::SqlLiteral.new(join)
+ join = Arel.sql(join)
end
arel.join(join)

0 comments on commit e080144

Please sign in to comment.