Skip to content

Instantly share code, notes, and snippets.

@bricker
Created April 16, 2015 21:00
Show Gist options
  • Save bricker/a46bb6abce62dc6d6cfa to your computer and use it in GitHub Desktop.
Save bricker/a46bb6abce62dc6d6cfa to your computer and use it in GitHub Desktop.
Thing.find_by!(id: 123, state: "pending").state #=> "approved"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment