Sha256: 0f836700e2b0ea7408b8d4adb5c40cf04b5e29c89dbc21bf147fef8bca01471c

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 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

9 entries across 9 versions & 1 rubygems

Version Path
proxes-0.4.0 lib/proxes/policies/application_policy.rb
proxes-0.3.6 lib/proxes/policies/application_policy.rb
proxes-0.3.5 lib/proxes/policies/application_policy.rb
proxes-0.3.3 lib/proxes/policies/application_policy.rb
proxes-0.3.2 lib/proxes/policies/application_policy.rb
proxes-0.3.1 lib/proxes/policies/application_policy.rb
proxes-0.3.0 lib/proxes/policies/application_policy.rb
proxes-0.2.0 lib/proxes/policies/application_policy.rb
proxes-0.1.0 lib/proxes/policies/application_policy.rb