instance method record_error

Ruby on Rails 3.2.22.5

Since v3.1.12 Last seen in v3.2.22.5 Private

Available in: v3.1.12 v3.2.22.5

Signature

record_error(record, attribute, name, value)

No documentation comment.

Parameters

record req
attribute req
name req
value req
Source
# 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

Defined in activemodel/lib/active_model/validations/format.rb line 31 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Validations::FormatValidator

Type at least 2 characters to search.

↑↓ navigate · open · esc close