diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-10-31 00:38:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 00:38:24 -0400 |
commit | b0ad8046091ce45a20fc7a5cb68b4599f876bbbb (patch) | |
tree | d18c95d125a2e6ed1b8ef5d8067022c09a7b3609 /lib/arel | |
parent | 5cc7e774bb4d2190236cdbf46d66c89507ac6933 (diff) | |
parent | 1aeefa68bc93fddfba1d6549bb870d3829dfe0e2 (diff) | |
download | rails-b0ad8046091ce45a20fc7a5cb68b4599f876bbbb.tar.gz rails-b0ad8046091ce45a20fc7a5cb68b4599f876bbbb.tar.bz2 rails-b0ad8046091ce45a20fc7a5cb68b4599f876bbbb.zip |
Merge pull request #502 from kddeisz/count-math
Allow count nodes to have math functions
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/nodes/count.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |