Permalink
Browse files

we only care about arrays and strings

  • Loading branch information...
1 parent ddc2f2e commit 8ae8125e75fe15d126b4b911e8bcf84cd0464169 @tenderlove tenderlove committed Sep 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -158,7 +158,7 @@ def custom_join_sql(*joins)
@implicit_readonly = true
case join
- when Hash, Array, Symbol
+ when Array
if array_of_strings?(join)
join = Arel::SqlLiteral.new(join.join(' '))
end

0 comments on commit 8ae8125

Please sign in to comment.