diff --git a/config/initializers/sucker_punch.rb b/config/initializers/sucker_punch.rb new file mode 100644 index 0000000..d7db14c --- /dev/null +++ b/config/initializers/sucker_punch.rb @@ -0,0 +1,4 @@ +# Enviar una notificación cuando falla una tarea +SuckerPunch.exception_handler = -> (ex, klass, args) do + ExceptionNotifier.notify_exception(ex) +end