app/models/user.rb
#return true if remember digest value is equal to remember token
return true if remember digest value is equal to remember token
return true if remember digest value is equal to remember token
def authenticated?(attribute, token)
        digest = self.send("#{attribute}_digest")
        return false if remember_digest.nil?
        BCrypt::Password.new(digest).is_password?(remember_token)
    end
def authenticated? ( attribute , token ) digest = self . send ( "#{attribute}_digest" ) return false if remember_digest . nil? BCrypt :: Password . new ( digest ) . is_password? ( remember_token ) end
return true if remember digest value is equal to remember token
return true if remember digest value is equal to remember token
attribute
<not_specific>
token
<not_specific>