Sha256: 8b8b848bf1f4ae0071b2b57813ce3f7dc0685d01c9a88fe04f84ac4eb59e3f35
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true require_relative 'error_message_formatter' module Pundit module Matchers module Utils module AllActions # Error message formatter for `permit_all_actions` matcher. class PermittedActionsErrorFormatter include AllActions::ErrorMessageFormatter def initialize(matcher) @expected_kind = 'permitted' @opposite_kind = 'forbidden' @matcher = matcher end private attr_reader :matcher, :expected_kind, :opposite_kind end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems