Sha256: fbd3d62161aa893ff4e35ad36489cd8e1f362c055d21a426f1040ddca6d32f4f

Contents?: true

Size: 316 Bytes

Versions: 13

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

require 'ditty/policies/application_policy'

module ProxES
  class StatusPolicy < Ditty::ApplicationPolicy
    def check?
      user
    end

    def list?
      check?
    end

    class Scope < Ditty::ApplicationPolicy::Scope
      def resolve
        []
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
proxes-0.10.1 lib/proxes/policies/status_policy.rb
proxes-0.9.13 lib/proxes/policies/status_policy.rb
proxes-0.9.12 lib/proxes/policies/status_policy.rb
proxes-0.9.9 lib/proxes/policies/status_policy.rb
proxes-0.9.7 lib/proxes/policies/status_policy.rb
proxes-0.9.4 lib/proxes/policies/status_policy.rb
proxes-0.9.2 lib/proxes/policies/status_policy.rb
proxes-0.9.1 lib/proxes/policies/status_policy.rb
proxes-0.9.0 lib/proxes/policies/status_policy.rb
proxes-0.8.6 lib/proxes/policies/status_policy.rb
proxes-0.8.5 lib/proxes/policies/status_policy.rb
proxes-0.8.4 lib/proxes/policies/status_policy.rb
proxes-0.8.3 lib/proxes/policies/status_policy.rb