From 374f535dac585ab603281b6b6c9a16a940f67fe5 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Wed, 25 Feb 2015 11:42:20 +0100 Subject: [PATCH] sitemap add themen --- config/sitemap.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/sitemap.rb b/config/sitemap.rb index a520725..0eca29d 100644 --- a/config/sitemap.rb +++ b/config/sitemap.rb @@ -52,11 +52,18 @@ SitemapGenerator::Sitemap.create do Themengruppe.public.with_translations(:en).find_each do |thema| add themengruppe_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at end + Thema.public.with_translations(:en).find_each do |thema| + add thema_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at + end end Globalize.with_locale(:de) do Themengruppe.public.with_translations(:de).find_each do |thema| add themengruppe_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at end + Thema.public.with_translations(:de).find_each do |thema| + add thema_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at + end + end # Put links creation logic here. #