From 39d98e5c0925f6ba00e8a6d0058b3230ee76f6d2 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 28 Sep 2010 17:05:32 -0700 Subject: we only care about arrays and strings --- activerecord/lib/active_record/relation/query_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index b7c15fb808..e99009a111 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -157,7 +157,7 @@ module ActiveRecord @implicit_readonly = true case join - when Hash, Array, Symbol + when Array if array_of_strings?(join) join = Arel::SqlLiteral.new(join.join(' ')) end -- cgit v1.2.3