diff options
author | Ernie Miller <ernie@metautonomo.us> | 2011-03-12 10:53:47 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-12 10:59:03 +0800 |
commit | 05887fc406820f2e8fecc5cedcc42b87cf9f0ab1 (patch) | |
tree | e1bbf6fb59e9f7e356eba30b9d52ce63c3325d9d /lib/arel | |
parent | 21e052796d3007488d5dd9f00299a3a22fdb6249 (diff) | |
download | rails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.tar.gz rails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.tar.bz2 rails-05887fc406820f2e8fecc5cedcc42b87cf9f0ab1.zip |
Make as factory method convert alias name to SqlLiteral
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/predications.rb | 2 |
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 |