From 5d220eb4e782c177def81fc14114fbdaf5fd434b Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:19:41 +0000 Subject: [PATCH] Update organisation classes These were renamed in govuk-frontend. We had 'middle man' classes in govuk_publishing_components that would redirect these old class names to the correct class name in govuk-frontend. However if we update the model, we can then remove these classes from govuk_publishing_components. --- app/models/organisation_brand_colour.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/organisation_brand_colour.rb b/app/models/organisation_brand_colour.rb index 4e5f670ed6d..6a331f7ac46 100644 --- a/app/models/organisation_brand_colour.rb +++ b/app/models/organisation_brand_colour.rb @@ -125,7 +125,7 @@ def self.find(class_name) TheOfficeOfTheLeaderOfTheHouseOfCommons = create!( id: 24, title: "Office of the Leader of the House of Commons", - class_name: "the-office-of-the-leader-of-the-house-of-commons", + class_name: "office-of-the-leader-of-the-house-of-commons", ) UKExportFinance = create!( id: 25, @@ -165,7 +165,7 @@ def self.find(class_name) DepartmentForScienceInnovationAndTechnology = create!( id: 32, title: "Department for Science, Innovation & Technology", - class_name: "department-for-science-innovation-and-technology", + class_name: "department-for-science-innovation-technology", ) PrimeMinistersOffice10DowningStreet = create!( id: 33,