Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- common_friends_temptations = Temptation.where(:id => common_friends_temptations_ids ).order("created_at DESC")
- direct_friends_temptations = Temptation.where(:id => direct_friends_temptations_ids ).order("created_at DESC")
- ignored_temptations = common_friends_temptations + direct_friends_temptations
- global = Temptation.where("user_id != ? AND id not in(?)", id, ignored_temptations).all
Add Comment
Please, Sign In to add comment