Created
October 6, 2008 15:56
-
-
Save jperkins/15066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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