Merge errors from models into interactions
mainWhen an interaction wraps a model operation (like save), you can use errors.merge!(model.errors) inside the #execute method. This transfers validation errors from the underlying model to the interaction outcome, allowing the controller to handle them as if they were interaction errors.
def execute
account = Account.new(inputs)
unless account.save
errors.merge!(account.errors)
end
account
end