From 445a0ea342c28b8a6598343db40ad776cffd3a2e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 23 Sep 2010 14:02:12 -0700 Subject: moving expression up to function class --- lib/arel/nodes/count.rb | 1 - lib/arel/nodes/function.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel/nodes') diff --git a/lib/arel/nodes/count.rb b/lib/arel/nodes/count.rb index 354659ef70..c6e19afb34 100644 --- a/lib/arel/nodes/count.rb +++ b/lib/arel/nodes/count.rb @@ -1,7 +1,6 @@ module Arel module Nodes class Count < Arel::Nodes::Function - include Arel::Expression attr_accessor :distinct diff --git a/lib/arel/nodes/function.rb b/lib/arel/nodes/function.rb index 90c6ba23a2..a1cd13d4d1 100644 --- a/lib/arel/nodes/function.rb +++ b/lib/arel/nodes/function.rb @@ -1,6 +1,7 @@ module Arel module Nodes class Function + include Arel::Expression attr_accessor :expressions, :alias def initialize expr, aliaz = nil -- cgit v1.2.3