From 1aeefa68bc93fddfba1d6549bb870d3829dfe0e2 Mon Sep 17 00:00:00 2001 From: Kevin Deisz Date: Fri, 27 Oct 2017 10:42:09 -0400 Subject: Allow count nodes to have math functions --- lib/arel/nodes/count.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/arel') diff --git a/lib/arel/nodes/count.rb b/lib/arel/nodes/count.rb index a7c6236a22..4dd9be453f 100644 --- a/lib/arel/nodes/count.rb +++ b/lib/arel/nodes/count.rb @@ -2,6 +2,8 @@ module Arel module Nodes class Count < Arel::Nodes::Function + include Math + def initialize expr, distinct = false, aliaz = nil super(expr, aliaz) @distinct = distinct -- cgit v1.2.3