Sha256: 2dde5df6b4b944705f613f3952609cd8cc54c42789eaca3eba077d2d03f50f15

Contents?: true

Size: 417 Bytes

Versions: 7

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require_relative 'actions_matcher'

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

          def actual_actions
            policy_info.forbidden_actions
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pundit-matchers-2.3.0 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-2.2.0 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-2.1.0 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-2.0.0 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-1.9.0 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-1.8.4 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb
pundit-matchers-1.8.3 lib/pundit/matchers/utils/all_actions/forbidden_actions_matcher.rb