Guest User

Untitled

a guest
Feb 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def market_id_unique_to_plan?
  2. accum = 0
  3.  
  4. plan.get_plan_market_ids.each do |current_market_id|
  5. accum += 1 if current_market_id.sort == self.market_id.sort
  6. end
  7.  
  8. accum < 2 ? true : false
  9. end
Add Comment
Please, Sign In to add comment