mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:26:22 +00:00
enviar le usuarie con el reporte de error para saber a quien contactar
This commit is contained in:
parent
8500f4929c
commit
a55ff02ce7
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,8 @@ class ApplicationController < ActionController::Base
|
||||||
include ExceptionHandler
|
include ExceptionHandler
|
||||||
|
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception
|
||||||
|
|
||||||
|
before_action :prepare_exception_notifier
|
||||||
before_action :configure_permitted_parameters, if: :devise_controller?
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
||||||
around_action :set_locale
|
around_action :set_locale
|
||||||
|
|
||||||
|
@ -52,4 +54,8 @@ class ApplicationController < ActionController::Base
|
||||||
def configure_permitted_parameters
|
def configure_permitted_parameters
|
||||||
devise_parameter_sanitizer.permit(:account_update, keys: %i[lang])
|
devise_parameter_sanitizer.permit(:account_update, keys: %i[lang])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def prepare_exception_notifier
|
||||||
|
request.env['exception_notifier.exception_data'] = { current_user: current_user }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue