aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-15 15:45:55 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-15 15:45:55 -0700
commit3aace4a4716a0aa88cf605a814ea05d4b841edc5 (patch)
tree657ef6f8b2e423ef688c702f792fa4a1f196608c /lib
parent3e5186ffd8b708752f5af054074809f7563f1328 (diff)
downloadrails-3aace4a4716a0aa88cf605a814ea05d4b841edc5.tar.gz
rails-3aace4a4716a0aa88cf605a814ea05d4b841edc5.tar.bz2
rails-3aace4a4716a0aa88cf605a814ea05d4b841edc5.zip
symbols work as sql literals
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/select_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 66227bc0db..7c3c67b477 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -96,7 +96,7 @@ module Arel
# FIXME: converting these to SQLLiterals is probably not good, but
# rails tests require it.
@ctx.projections.concat projections.map { |x|
- String == x.class ? SqlLiteral.new(x) : x
+ [Symbol, String].include?(x.class) ? SqlLiteral.new(x.to_s) : x
}
self
end