Created
August 18, 2010 15:46
-
-
Save edavis10/535193 to your computer and use it in GitHub Desktop.
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
def default_assignee_id | |
if some_setting | |
"Hardcoded value" | |
else | |
read_attribute(:default_assignee_id) | |
end | |
end | |
def default_assignee_id=(v) | |
if some_setting | |
# Do other work | |
else | |
write_attribute(:default_assignee_id, v) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment