Created
December 10, 2014 19:59
-
-
Save jtrim/f4a430e619596e92535a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Activation | |
| # ...initialization... | |
| def activate | |
| if @user.activation_token == hash_token(@activation_token) | |
| @user.update_attributes!({ | |
| activated_at: Time.now, | |
| locked_at: nil, | |
| activation_token: nil | |
| }) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment