Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created August 18, 2010 15:46
Show Gist options
  • Save edavis10/535193 to your computer and use it in GitHub Desktop.
Save edavis10/535193 to your computer and use it in GitHub Desktop.
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