Class: EasyTokens::TokenValidator
- Inherits:
-
Object
- Object
- EasyTokens::TokenValidator
- Defined in:
- lib/easy_tokens/token_validator.rb
Class Method Summary collapse
Class Method Details
.valid?(token) ⇒ Boolean
3 4 5 |
# File 'lib/easy_tokens/token_validator.rb', line 3 def self.valid?(token) Token.exists?(value: token, deactivated_at: nil) end |