Skip to content
Snippets Groups Projects
Commit 65a20592 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

remove useless static_path

parent 841b79ca
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment