Skip to content

Instantly share code, notes, and snippets.

@BadAllOff
Created February 1, 2018 10:20
Show Gist options
  • Save BadAllOff/ff2523379ca3a1d77b7ac5eeb17c1332 to your computer and use it in GitHub Desktop.
Save BadAllOff/ff2523379ca3a1d77b7ac5eeb17c1332 to your computer and use it in GitHub Desktop.
password = 'password'
new_hashed_password = User.new(:password => password).encrypted_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment