diff --git a/app/controllers/concerns/controller_rescue_handler.rb b/app/controllers/concerns/controller_rescue_handler.rb index 0826d2709..580f92e1a 100644 --- a/app/controllers/concerns/controller_rescue_handler.rb +++ b/app/controllers/concerns/controller_rescue_handler.rb @@ -20,7 +20,7 @@ module ControllerRescueHandler render_error(ex.record.errors.full_messages.join(',')) end rescue_from RuntimeError do |ex| - render_error(ex.model.errors.full_messages.join(',')) + render_error(ex.full_messages.join(',')) end end end \ No newline at end of file