From 9c33f0030b679b9c28cfecd8caf6672946c67bf6 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Sun, 2 Jun 2024 23:37:56 +0200
Subject: [PATCH] Fix #1973

---
 app/controllers/admin/application_controller.rb | 5 -----
 app/controllers/application_controller.rb       | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb
index 119a0c694..5a98ff54f 100644
--- a/app/controllers/admin/application_controller.rb
+++ b/app/controllers/admin/application_controller.rb
@@ -11,11 +11,6 @@ class Admin::ApplicationController < ApplicationController
     redirect_to admin_root_path
   end
 
-  def background_tasks_count
-    @background_tasks_count ||= GoodJob::Job.where(finished_at: nil).count
-  end
-  helper_method :background_tasks_count
-
   protected
 
   def breadcrumb
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 044259dca..f3df7815f 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -11,6 +11,11 @@ class ApplicationController < ActionController::Base
     add_breadcrumb t('home'), root_path
   end
 
+  def background_tasks_count
+    @background_tasks_count ||= GoodJob::Job.where(finished_at: nil).count
+  end
+  helper_method :background_tasks_count
+
   protected
 
   def render_as_plain_text
-- 
GitLab