method
import
rails latest stable - 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.