Skip to content

Instantly share code, notes, and snippets.

@chumpy
Last active December 25, 2015 21:49
Show Gist options
  • Save chumpy/7044929 to your computer and use it in GitHub Desktop.
Save chumpy/7044929 to your computer and use it in GitHub Desktop.
if you're going to hard code the area stuff maybe this is better
#######################
# The following code goes in the distinction model
#######################
# This is the hard-coding alternative to putting these values in the db
DISTINCTION_AREAS = {'01' => '[email protected]', '02' => '[email protected]'}
def area_email
DISTINCTION_AREAS[self.area]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment