aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorErnie Miller <ernie@metautonomo.us>2011-03-12 10:53:47 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-12 10:59:03 +0800
commit05887fc406820f2e8fecc5cedcc42b87cf9f0ab1 (patch)
treee1bbf6fb59e9f7e356eba30b9d52ce63c3325d9d /lib
parent21e052796d3007488d5dd9f00299a3a22fdb6249 (diff)
downloadrails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.tar.gz
rails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.tar.bz2
rails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.zip
Make as factory method convert alias name to SqlLiteral
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/predications.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb
index 920a9ee374..75c4c75855 100644
--- a/lib/arel/predications.rb
+++ b/lib/arel/predications.rb
@@ -1,7 +1,7 @@
module Arel
module Predications
def as other
- Nodes::As.new self, other
+ Nodes::As.new self, Nodes::SqlLiteral.new(other)
end
def not_eq other