Last active
December 25, 2015 21:49
-
-
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
This file contains hidden or 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
####################### | |
# 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