Sha256: 189ae5229758088832294595550e893916f019e8afd6df9c8bca52a211122d83
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true require_relative 'error_message_formatter' module Pundit module Matchers module Utils module OnlyActions # Error message formatter for `permit_only_actions` matcher. class PermittedActionsErrorFormatter include OnlyActions::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
3 entries across 3 versions & 1 rubygems