Skip to content

Instantly share code, notes, and snippets.

@peternixey
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peternixey/11176324 to your computer and use it in GitHub Desktop.
Save peternixey/11176324 to your computer and use it in GitHub Desktop.
user_is_recently_created = user.created_at < 10.minutes.ago
invitation_is_unsent = !user.invitation_token
user_has_not_yet_edited_profile = (user.created_at == user.updated_at)
if user_is_recently_created
&& invitation_is_unsent
&& user_has_not_yet_edited_profile
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment