From 7cc0573926ea7f6f97e7664dd26cab80a26fa955 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 18 Dec 2024 15:14:12 -0300 Subject: [PATCH] fix: informar le usuarie --- app/controllers/concerns/exception_handler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/concerns/exception_handler.rb b/app/controllers/concerns/exception_handler.rb index 852d7d5f..3925f42c 100644 --- a/app/controllers/concerns/exception_handler.rb +++ b/app/controllers/concerns/exception_handler.rb @@ -22,7 +22,7 @@ module ExceptionHandler flash[:error] = I18n.t('errors.site_not_found') - ExceptionNotifier.notify_exception(exception, data: { path: request.fullpath }) + ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath }) redirect_to sites_path end @@ -32,7 +32,7 @@ module ExceptionHandler flash[:error] = I18n.t('errors.page_unauthorized') - ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie.id, path: request.fullpath }) + ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath }) redirect_to site_path(site) end