Guest User

Untitled

a guest
Feb 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. common_friends_temptations = Temptation.where(:id => common_friends_temptations_ids ).order("created_at DESC")
  2. direct_friends_temptations = Temptation.where(:id => direct_friends_temptations_ids ).order("created_at DESC")
  3. ignored_temptations = common_friends_temptations + direct_friends_temptations
  4. global = Temptation.where("user_id != ? AND id not in(?)", id, ignored_temptations).all
Add Comment
Please, Sign In to add comment