From 4a4cce9978fe6284183f33fd47fe09db059ec070 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 15 Oct 2017 01:02:58 +0200 Subject: [PATCH] Correction on rss builder to better manage region --- app/views/events/index.rss.builder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/events/index.rss.builder b/app/views/events/index.rss.builder index f2b02f10..5d6d3bd0 100644 --- a/app/views/events/index.rss.builder +++ b/app/views/events/index.rss.builder @@ -26,7 +26,8 @@ xml.rdf :RDF, 'xmlns:georss' => 'http://www.georss.org/georss' do xml.channel 'rdf:about' => root_url do title = t 'layouts.application.title' - title += " [#{Region.find(session[:region]).name}]" if session[:region] + region = Region.find_by id: session[:region] + title += " [#{region.name}]" if region xml.title title xml.description t 'layouts.application.subtitle' xml.link root_url