aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/predications.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-23 18:22:42 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-23 18:22:42 -0800
commit6667cfb995a49bffe66231a7ffc5a78ca7f5140f (patch)
treea682d59993e541ee697bfd0e4a5ed7486c22b996 /lib/arel/predications.rb
parent76932b99d60b28f93c88c9a95873ba8524c9e370 (diff)
downloadrails-6667cfb995a49bffe66231a7ffc5a78ca7f5140f.tar.gz
rails-6667cfb995a49bffe66231a7ffc5a78ca7f5140f.tar.bz2
rails-6667cfb995a49bffe66231a7ffc5a78ca7f5140f.zip
adding an AS node
Diffstat (limited to 'lib/arel/predications.rb')
-rw-r--r--lib/arel/predications.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb
index 03cbb7aa3f..5a5c3d4495 100644
--- a/lib/arel/predications.rb
+++ b/lib/arel/predications.rb
@@ -1,5 +1,9 @@
module Arel
module Predications
+ def as other
+ Nodes::As.new self, other
+ end
+
def not_eq other
Nodes::NotEqual.new self, other
end
@@ -174,4 +178,4 @@ module Arel
}
end
end
-end \ No newline at end of file
+end