method

record_error

rails latest stable - Class: ActiveModel::Validations::FormatValidator
record_error(record, attribute, name, value)
private

No documentation available.

# File activemodel/lib/active_model/validations/format.rb, line 30
        def record_error(record, attribute, name, value)
          record.errors.add(attribute, :invalid, **options.except(name).merge!(value: value))
        end