class ActiveModel::Error
def strict_match?(attribute, type, **options)
All params must be equal to Error's own attributes to be considered a
See if error matches provided +attribute+, +type+, and +options+ exactly.
def strict_match?(attribute, type, **options) return false unless match?(attribute, type) options == @options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS) end