Module: ActiveRecord::Relation::Union
- Included in:
- ActiveRecord::Relation
- Defined in:
- lib/c80_active_record_union/active_record/relation/union.rb
Defined Under Namespace
Classes: UnionFromClause
Constant Summary collapse
- SET_OPERATION_TO_AREL_CLASS =
{ union: Arel::Nodes::Union, union_all: Arel::Nodes::UnionAll }
Instance Method Summary collapse
Instance Method Details
#union(relation_or_where_arg, *args) ⇒ Object
10 11 12 |
# File 'lib/c80_active_record_union/active_record/relation/union.rb', line 10 def union(relation_or_where_arg, *args) set_operation(:union, relation_or_where_arg, *args) end |
#union_all(relation_or_where_arg, *args) ⇒ Object
14 15 16 |
# File 'lib/c80_active_record_union/active_record/relation/union.rb', line 14 def union_all(relation_or_where_arg, *args) set_operation(:union_all, relation_or_where_arg, *args) end |