diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb index 119a0c69438361256e789b22e46649da8a50e8e2..5a98ff54f8810af2844520e7a79ce801542235b5 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 044259dca12a0f943c60f8d81f8c87787f803ad2..f3df7815f99ee530a4eb35ccfcbafda3d809f678 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