diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 10 |
1 files changed, 4 insertions, 6 deletions
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 |