Class: MicroAuth::Token
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- MicroAuth::Token
- Defined in:
- app/models/micro_auth/token.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
#attributes_print, fuzzy_search, match_search, #match_search, sanitize_for_search, sanitize_name, sanitize_sql_in, useful_err_msg, with_lax_group_rules
Instance Method Details
#active? ⇒ Boolean
9 10 11 |
# File 'app/models/micro_auth/token.rb', line 9 def active? expires_at.nil? || expires_at.future? end |