Sha256: 89f34c29ff1d2559d28ec810e795d7c7b9ef63fb4441d48ade981ff6a2b8489c

Contents?: true

Size: 812 Bytes

Versions: 3

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

module ActionPolicy
  # Base class for application policies.
  class Base
    require "action_policy/policy/core"
    require "action_policy/policy/defaults"
    require "action_policy/policy/authorization"
    require "action_policy/policy/reasons"
    require "action_policy/policy/pre_check"
    require "action_policy/policy/aliases"
    require "action_policy/policy/cache"
    require "action_policy/policy/cached_apply"

    include ActionPolicy::Policy::Core
    include ActionPolicy::Policy::Authorization
    include ActionPolicy::Policy::Reasons
    include ActionPolicy::Policy::PreCheck
    include ActionPolicy::Policy::Aliases
    include ActionPolicy::Policy::Cache
    include ActionPolicy::Policy::CachedApply
    include ActionPolicy::Policy::Defaults
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
action_policy-0.1.2 lib/action_policy/base.rb
action_policy-0.1.1 lib/action_policy/base.rb
action_policy-0.1.0 lib/action_policy/base.rb