mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fix error on end of each request at cleanup_application
declaring self.method caused rails to error Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
033b4daf9a
commit
eb26f4f7b9
2 changed files with 62 additions and 62 deletions
|
|
@ -227,15 +227,15 @@ class User < ActiveRecord::Base
|
|||
|
||||
protected
|
||||
|
||||
def self.salted(s)
|
||||
def salted(s)
|
||||
"#{Tracks::Config.salt}--#{s}--"
|
||||
end
|
||||
|
||||
def self.sha1(s)
|
||||
def sha1(s)
|
||||
Digest::SHA1.hexdigest salted s
|
||||
end
|
||||
|
||||
def self.hash(s)
|
||||
def hash(s)
|
||||
BCrypt::Password.create s
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue