Method: Arel::SelectManager#union
- Defined in:
- activerecord/lib/arel/select_manager.rb
#union(operation, other = nil) ⇒ Object
198 199 200 201 202 203 204 205 206 207 |
# 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 |