Sha256: 1bf247eaa06466d6fbded08eff545d94718e5bbe781c95545c71ebc0e439655e
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 `forbid_only_actions` matcher. class ForbiddenActionsErrorFormatter include OnlyActions::ErrorMessageFormatter def initialize(matcher) @expected_kind = 'forbidden' @opposite_kind = 'permitted' @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