From 05887fc406820f2e8fecc5cedcc42b87cf9f0ab1 Mon Sep 17 00:00:00 2001 From: Ernie Miller Date: Sat, 12 Mar 2011 10:53:47 +0800 Subject: Make as factory method convert alias name to SqlLiteral --- lib/arel/predications.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3