Sha256: 623f14dd2a3b8bb193f14da1aa7ab0fec1ceaad7c9cb2d99624d69b4cb778f58

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.0.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.4.2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.4.1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.0.0.rc2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.4.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.3.2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.3.1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.3.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.2.6 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-4.2.5 lib/doorkeeper/models/concerns/accessible.rb