lib/doorkeeper/models/concerns/accessible.rb in doorkeeper-4.2.0 vs lib/doorkeeper/models/concerns/accessible.rb in doorkeeper-4.2.5
- old
+ new
@@ -1,7 +1,11 @@
module Doorkeeper
module Models
module Accessible
+ # Indicates whether the object is accessible (not expired and not revoked).
+ #
+ # @return [Boolean] true if object accessible or false in other case
+ #
def accessible?
!expired? && !revoked?
end
end
end