From d60061a5e40eb807c6cd70a222d56f933db7c348 Mon Sep 17 00:00:00 2001 From: Aleksandar Ivanov Date: Mon, 12 Feb 2024 13:10:17 +0200 Subject: [PATCH] Fix rails 7.1 support --- lib/loga/railtie.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/loga/railtie.rb b/lib/loga/railtie.rb index b38a9fc..339bd22 100644 --- a/lib/loga/railtie.rb +++ b/lib/loga/railtie.rb @@ -86,10 +86,10 @@ def self.included(base) #:nodoc: private - def render_exception_with_loga(arg, exception) + def render_exception_with_loga(arg, exception, *args) env = arg.is_a?(ActionDispatch::Request) ? arg.env : arg env['loga.exception'] = exception - render_exception_without_loga(arg, exception) + render_exception_without_loga(arg, exception, *args) end end