method

add_from_legacy_details_hash

rails latest stable - Class: ActiveModel::Errors

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

add_from_legacy_details_hash(details)
private

No documentation available.

# 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