From b579fd087e5da97373914bb0462338edd90129eb Mon Sep 17 00:00:00 2001 From: f Date: Mon, 4 May 2020 15:36:48 -0300 Subject: [PATCH] a rubocop le gustaba otra sintaxis --- config/initializers/sucker_punch.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/sucker_punch.rb b/config/initializers/sucker_punch.rb index d7db14c..865af32 100644 --- a/config/initializers/sucker_punch.rb +++ b/config/initializers/sucker_punch.rb @@ -1,4 +1,6 @@ +# frozen_string_literal: true + # Enviar una notificación cuando falla una tarea -SuckerPunch.exception_handler = -> (ex, klass, args) do +SuckerPunch.exception_handler = lambda { |ex, _klass, _args| ExceptionNotifier.notify_exception(ex) -end +}