method

record_error

record_error(record, attribute, name, value)
private

No documentation available.

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