From 242df5278cd44afdcbd4c4b1b997c27bf9b04aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 5 Dec 2022 15:02:25 +0100 Subject: [PATCH] kinds --- app/models/communication/website/permalink.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/communication/website/permalink.rb b/app/models/communication/website/permalink.rb index 37ed5d046..bbf449be5 100644 --- a/app/models/communication/website/permalink.rb +++ b/app/models/communication/website/permalink.rb @@ -51,7 +51,7 @@ class Communication::Website::Permalink < ApplicationRecord scope :not_current, -> { where(is_current: false) } def self.config_in_website(website) - config_required_in_website.map { |permalink_class| + required_kinds_in_website.map { |permalink_class| [permalink_class.static_config_key, permalink_class.pattern_in_website(website)] }.to_h end @@ -77,7 +77,7 @@ class Communication::Website::Permalink < ApplicationRecord protected - def self.config_required_in_website(website) + def self.required_kinds_in_website(website) MAPPING.values.select { |permalink_class| permalink_class.required_for_website?(website) } -- GitLab