fix mentor's comment 2

parent ed622ffa
Pipeline #929 canceled with stages
in 0 seconds
...@@ -24,7 +24,7 @@ class User < ApplicationRecord ...@@ -24,7 +24,7 @@ class User < ApplicationRecord
SecureRandom.urlsafe_base64 SecureRandom.urlsafe_base64
end end
def User.digest(token) def self.digest(token)
Digest::SHA1.hexdigest(token.to_s) Digest::SHA1.hexdigest(token.to_s)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment