aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/function.rb
diff options
context:
space:
mode:
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