aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/select_core.rb')
-rw-r--r--lib/arel/nodes/select_core.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/arel/nodes/select_core.rb b/lib/arel/nodes/select_core.rb
index bee0a5930c..9b8c4a2a1f 100644
--- a/lib/arel/nodes/select_core.rb
+++ b/lib/arel/nodes/select_core.rb
@@ -1,7 +1,7 @@
module Arel
module Nodes
class SelectCore < Arel::Nodes::Node
- attr_accessor :top, :projections, :wheres, :groups
+ attr_accessor :top, :projections, :wheres, :groups, :windows
attr_accessor :having, :source, :set_quantifier
def initialize
@@ -14,6 +14,7 @@ module Arel
@wheres = []
@groups = []
@having = nil
+ @windows = []
end
def from
@@ -34,6 +35,7 @@ module Arel
@wheres = @wheres.clone
@groups = @groups.clone
@having = @having.clone if @having
+ @windows = @windows.clone
end
end
end