Sha256: b45965f4bacfabde692b0a20a434b2397c37da05975596db39fc47c67b7ac87e

Contents?: true

Size: 342 Bytes

Versions: 11

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module ProxES
  class ApplicationPolicy
    attr_reader :user, :record

    def initialize(user, record)
      @user = user
      @record = record
    end

    class Scope
      attr_reader :user, :scope

      def initialize(user, scope)
        @user = user
        @scope = scope
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
proxes-0.7.1 lib/proxes/policies/application_policy.rb
proxes-0.7.0 lib/proxes/policies/application_policy.rb
proxes-0.6.1 lib/proxes/policies/application_policy.rb
proxes-0.6.0 lib/proxes/policies/application_policy.rb
proxes-0.5.2 lib/proxes/policies/application_policy.rb
proxes-0.5.1 lib/proxes/policies/application_policy.rb
proxes-0.5.0 lib/proxes/policies/application_policy.rb
proxes-0.4.4 lib/proxes/policies/application_policy.rb
proxes-0.4.3 lib/proxes/policies/application_policy.rb
proxes-0.4.2 lib/proxes/policies/application_policy.rb
proxes-0.4.1 lib/proxes/policies/application_policy.rb