From 65a205925b957cb978a2fcc8ffcbf11253c3154d Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 7 Sep 2023 12:10:48 +0200 Subject: [PATCH] remove useless static_path --- app/models/communication/website/agenda/event.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/communication/website/agenda/event.rb b/app/models/communication/website/agenda/event.rb index 71fc6bafd..2688faaf7 100644 --- a/app/models/communication/website/agenda/event.rb +++ b/app/models/communication/website/agenda/event.rb @@ -64,11 +64,7 @@ class Communication::Website::Agenda::Event < ApplicationRecord def git_path(website) return unless website.id == communication_website_id && published - "#{git_path_content_prefix(website)}events/#{static_path}.html" - end - - def static_path - "#{from_day.year}/#{from_day.strftime "%Y-%m-%d"}-#{slug}" + "#{git_path_content_prefix(website)}events/#{from_day.year}/#{from_day.strftime "%Y-%m-%d"}-#{slug}.html" end def template_static -- GitLab