Sha256: 237d4fc33662c579536c165445cdb5d1dd6c9d611ba67c96bb8a9712d0386cf7

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

          def actual_actions
            policy_info.permitted_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/permitted_actions_matcher.rb
pundit-matchers-2.2.0 lib/pundit/matchers/utils/only_actions/permitted_actions_matcher.rb
pundit-matchers-2.1.0 lib/pundit/matchers/utils/only_actions/permitted_actions_matcher.rb