Sha256: 2778e027b78c5c4618bc4bcaee6e4b53ca593990046957a85766fd1873f685ba

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 `permit_all_actions` matcher.
        class PermittedActionsMatcher < AllActions::ActionsMatcher
          private

          def actual_actions
            policy_info.permitted_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/permitted_actions_matcher.rb
pundit-matchers-2.2.0 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb
pundit-matchers-2.1.0 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb
pundit-matchers-2.0.0 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb
pundit-matchers-1.9.0 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb
pundit-matchers-1.8.4 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb
pundit-matchers-1.8.3 lib/pundit/matchers/utils/all_actions/permitted_actions_matcher.rb