summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-03 13:55:47 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-03 13:55:47 -0500
commitc6560f77a771f38b1425250c14d35c9af9291255 (patch)
treefe114b264923224fb7f9dc23d72deeccc6f986df
parent26964a54fffb5501ba505c229361ae6a100ed099 (diff)
DOCUMENTATION FOR USER.RB
-rw-r--r--app/models/user.rb8
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