enviar notificaciones cuando fallan tareas
This commit is contained in:
parent
5ffef95186
commit
ddb97e11f3
1 changed files with 4 additions and 0 deletions
4
config/initializers/sucker_punch.rb
Normal file
4
config/initializers/sucker_punch.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Enviar una notificación cuando falla una tarea
|
||||
SuckerPunch.exception_handler = -> (ex, klass, args) do
|
||||
ExceptionNotifier.notify_exception(ex)
|
||||
end
|
Loading…
Reference in a new issue