adds legislation processes to sitemap

This commit is contained in:
decabeza
2017-12-21 14:44:30 +01:00
parent 466b6d9ec5
commit ef5cbc4638

View File

@@ -42,4 +42,10 @@ SitemapGenerator::Sitemap.create do
Poll.find_each do |poll|
add poll_path(poll), lastmod: poll.starts_at
end
add legislation_processes_path, priority: 0.7, changefreq: "daily"
Legislation::Process.find_each do |process|
add legislation_process_path(process), lastmod: process.start_date
end
end