class Pundit::Matchers::BaseMatcher
This is the base class for all matchers in the Pundit
Matchers
library.
Constants
- AMBIGUOUS_NEGATED_MATCHER_ERROR
Error message when an ambiguous negated matcher is used.
Attributes
policy_info[R]
Private Instance Methods
setup_policy_info!(policy)
click to toggle source
# File lib/pundit/matchers/base_matcher.rb, line 20 def setup_policy_info!(policy) @policy_info = Pundit::Matchers::Utils::PolicyInfo.new(policy) end
user_message()
click to toggle source
# File lib/pundit/matchers/base_matcher.rb, line 24 def user_message " for '#{policy_info.user}'" end