class Dry::Ability::RuleNotDefined

Constants

DEFAULT_MESSAGE_TEMPLATE
NONE

Public Class Methods

new(message = nil, subject:, action:, candidates: NONE) click to toggle source
Calls superclass method
# File lib/dry/ability/exceptions.rb, line 15
def initialize(message = nil, subject:, action:, candidates: NONE)
  @action, @subject = action, subject
  message ||= format(DEFAULT_MESSAGE_TEMPLATE, subject, action, candidates)
  super(message)
end