Skip to content

Instantly share code, notes, and snippets.

@jperkins
Created October 6, 2008 15:56
Show Gist options
  • Save jperkins/15066 to your computer and use it in GitHub Desktop.
Save jperkins/15066 to your computer and use it in GitHub Desktop.
def market_id_unique_to_plan?
accum = 0
plan.get_plan_market_ids.each do |current_market_id|
accum += 1 if current_market_id.sort == self.market_id.sort
end
accum < 2 ? true : false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment