Skip to content

Instantly share code, notes, and snippets.

@modsognir
Created January 31, 2013 06:05
Show Gist options
  • Save modsognir/4680678 to your computer and use it in GitHub Desktop.
Save modsognir/4680678 to your computer and use it in GitHub Desktop.
def activated=(bool)
activate!
self[:activated] = true # if you want to persist this field
end
def activate!
# stuff you want done
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment