Class: EasyTokens::TokenValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_tokens/token_validator.rb

Class Method Summary collapse

Class Method Details

.valid?(token) ⇒ Boolean

Returns:

  • (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