Sha256: 1c4f60c2c9e406c601b761d26803f216629657058d83dd7a1aa1eee4e50fdcf2

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require_relative 'actions_matcher'

module Pundit
  module Matchers
    module Utils
      module OnlyActions
        # Handles all the checks in `forbid_only_actions` matcher.
        class ForbiddenActionsMatcher < OnlyActions::ActionsMatcher
          private

          def actual_actions
            policy_info.forbidden_actions
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pundit-matchers-2.3.0 lib/pundit/matchers/utils/only_actions/forbidden_actions_matcher.rb
pundit-matchers-2.2.0 lib/pundit/matchers/utils/only_actions/forbidden_actions_matcher.rb
pundit-matchers-2.1.0 lib/pundit/matchers/utils/only_actions/forbidden_actions_matcher.rb