From f574327f19f717a66b327ebffd8ef0fdb3967fdc Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 22 Jan 2011 14:08:27 -0800 Subject: other should not be optional --- lib/arel/select_manager.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index afc46a626e..e330e49e71 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -145,14 +145,12 @@ module Arel node_class.new self.ast, other.ast end - def intersect other = nil - node_class = Nodes::Intersect - node_class.new self.ast, other.ast + def intersect other + Nodes::Intersect.new ast, other.ast end - def except other = nil - node_class = Nodes::Except - node_class.new self.ast, other.ast + def except other + Nodes::Except.new ast, other.ast end def with *subqueries -- cgit v1.2.3