diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 13:55:47 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 13:55:47 -0500 |
commit | c6560f77a771f38b1425250c14d35c9af9291255 (patch) | |
tree | fe114b264923224fb7f9dc23d72deeccc6f986df | |
parent | 26964a54fffb5501ba505c229361ae6a100ed099 (diff) |
DOCUMENTATION FOR USER.RB
-rw-r--r-- | app/models/user.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 53ccdaf..04cb87d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -128,11 +128,13 @@ https://en.wikipedia.org/wiki/SHA-1 =end - # everything under private is hidden so you cannot call - # create_remember_token in order to ensure security + # Everything under private is hidden so you cannot call private - #assign user a create remember token + # Create_remember_token in order to ensure a user always has + # a remember token. + + # Assign user a create remember token def create_remember_token self.remember_token = User.hash(User.new_remember_token) end |