ActiveResource::Errors inherits from ActiveModel::Errors.
You can overwrite the errors on the @user
instance by enumerating the attributes of base_user
:
base_user.errors.each do |name, value|
@user.errors.set(name, value)
end
You may need to consider the case where you have errors on both objects, and overwriting one with the other might not be appropriate.