instance method add_from_legacy_details_hash

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v6.1.7.10 Private

Signature

add_from_legacy_details_hash(details)

No documentation comment.

Parameters

details req
Source
# File activemodel/lib/active_model/errors.rb, line 576
      def add_from_legacy_details_hash(details)
        details.each { |attribute, errors|
          errors.each { |error|
            type = error.delete(:error)
            add(attribute, type, **error)
          }
        }
      end

Defined in activemodel/lib/active_model/errors.rb line 576 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Errors

Type at least 2 characters to search.

↑↓ navigate · open · esc close