method

union

rails latest stable - Class: Arel::SelectManager
union(operation, other = nil)
public

No documentation available.

# File activerecord/lib/arel/select_manager.rb, line 198
    def union(operation, other = nil)
      if other
        node_class = Nodes.const_get("Union#{operation.to_s.capitalize}")
      else
        other = operation
        node_class = Nodes::Union
      end

      node_class.new self.ast, other.ast
    end