strict_match?(attribute, type, **options)
public
See if error matches provided attribute, type, and
options exactly.
All
params must be equal to Error’s
own attributes to be considered a strict match.
# File activemodel/lib/active_model/error.rb, line 184
def strict_match?(attribute, type, **options)
return false unless match?(attribute, type)
options == @options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS)
end