method

copy!

copy!(other)
public

Copies the errors from other. For copying errors but keep @base as is.

other - The ActiveModel::Errors instance.

Examples

person.errors.copy!(other)