adding two ActiveRecord::Relation objects

ruby, ruby-on-rails-3

Solution

Try:

new_relation = relation.merge(another_relation)

Problem

How do you add two relations together? When I try the + operator it returns an array. But I need it to return a relation. thanks, mike

Original source

Related problems