Class: Adeia::Token

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/adeia/token.rb

Instance Method Summary collapse

Instance Method Details

#is_valid?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/adeia/token.rb', line 10

def is_valid?
  exp_at > Time.now && is_valid
end