method

import

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveModel::Errors
import(error, override_options = {}) public

Imports one error. Imported errors are wrapped as a NestedError, providing access to original error object. If attribute or type needs to be overridden, use override_options.

Options

  • :attribute - Override the attribute the error belongs to.

  • :type - Override type of the error.

Show source
Register or log in to add new notes.