Module: Doorkeeper::Models::Accessible

Included in:
AccessGrantMixin, AccessTokenMixin
Defined in:
lib/doorkeeper/models/concerns/accessible.rb

Instance Method Summary collapse

Instance Method Details

#accessible?Boolean

Indicates whether the object is accessible (not expired and not revoked).

Returns:

  • (Boolean)

    true if object accessible or false in other case


10
11
12
# File 'lib/doorkeeper/models/concerns/accessible.rb', line 10

def accessible?
  !expired? && !revoked?
end