Rails: Combine Two ActiveRecord::Relation Objects
first_relation = User.where(:first_name => 'shuo') # ActiveRecord::Relation
last_relation  = User.where(:last_name  => 'zhang') # ActiveRecord::Relation
first_relation.merge(last_relation)
first_relation.or(last_relation)

S