diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-28 17:05:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-28 17:05:32 -0700 |
commit | 39d98e5c0925f6ba00e8a6d0058b3230ee76f6d2 (patch) | |
tree | d3666c8f86b662c09c634283c6b6649393c81cc5 /activerecord | |
parent | 957e6fbe2a313eceed9d3d8f6fa7e65f78756fe8 (diff) | |
download | rails-39d98e5c0925f6ba00e8a6d0058b3230ee76f6d2.tar.gz rails-39d98e5c0925f6ba00e8a6d0058b3230ee76f6d2.tar.bz2 rails-39d98e5c0925f6ba00e8a6d0058b3230ee76f6d2.zip |
we only care about arrays and strings
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |