From 9e1c851aee15ce26fc2ae3df5de731c132a6e457 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Mon, 6 Nov 2023 17:50:19 +0000 Subject: [PATCH] CLDC-2863: rename check_maintenance to check_maintenance_status --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index bcf8bd428..5d96d7c16 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,10 +3,10 @@ class ApplicationController < ActionController::Base rescue_from Pundit::NotAuthorizedError, with: :render_not_authorized - before_action :check_maintenance + before_action :check_maintenance_status before_action :set_paper_trail_whodunnit - def check_maintenance + def check_maintenance_status if FeatureToggle.service_unavailable? && !%w[service-unavailable accessibility-statement privacy-notice cookies].include?(request.fullpath.split("?")[0].delete("/")) redirect_to service_unavailable_path elsif !FeatureToggle.service_unavailable? && request.fullpath.split("?")[0].delete("/") == "service-unavailable"