aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/function.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-14 21:06:16 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-14 21:06:16 -0800
commit494a96542927348776e85e8ae52a01ad75ced872 (patch)
treea62f1957501d733b1d2f5369bb1d2a583c0824de /lib/arel/nodes/function.rb
parentd4bfaf2b82934e8611824c15cbf855d3d02418b5 (diff)
downloadrails-494a96542927348776e85e8ae52a01ad75ced872.tar.gz
rails-494a96542927348776e85e8ae52a01ad75ced872.tar.bz2
rails-494a96542927348776e85e8ae52a01ad75ced872.zip
cleaning up more nodes
Diffstat (limited to 'lib/arel/nodes/function.rb')
-rw-r--r--lib/arel/nodes/function.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/arel/nodes/function.rb b/lib/arel/nodes/function.rb
index 133dd66019..e4e45bff31 100644
--- a/lib/arel/nodes/function.rb
+++ b/lib/arel/nodes/function.rb
@@ -14,5 +14,15 @@ module Arel
self
end
end
+
+ %w{
+ Sum
+ Exists
+ Max
+ Min
+ Avg
+ }.each do |name|
+ const_set(name, Class.new(Function))
+ end
end
end