diff options
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r-- | lib/arel/select_manager.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 4e1382224d..afc46a626e 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -145,6 +145,16 @@ 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 + end + + def except other = nil + node_class = Nodes::Except + node_class.new self.ast, other.ast + end + def with *subqueries if subqueries.first.is_a? Symbol node_class = Nodes.const_get("With#{subqueries.shift.to_s.capitalize}") |