diff --git a/app/models/communication/website/agenda/event.rb b/app/models/communication/website/agenda/event.rb index 71fc6bafd70b77434ad470e7dc03e9d63b0f0a3a..2688faaf78ebfcfd45532bf14be2bfae4e1e8a1c 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