Combine two ActiveRecord Query results
This was useful for me:
Model.where(...) | Model.where(...)
Use relation & relation
:
Model.joins("join relationships ON user_id = followed_id").where("follower_id = {user.id}") & Model.where(:user_id => user.id)