Skip to content

Instantly share code, notes, and snippets.

@tobyhede
Created December 18, 2013 22:20
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 tobyhede/8030900 to your computer and use it in GitHub Desktop.
Save tobyhede/8030900 to your computer and use it in GitHub Desktop.
app.users.find_by!(:identifier => identifier).tap do |user|
user.verify!
end
user = app.users.find_by!(:identifier => identifier)
user.verify!
user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment