Fix double XML declaration on trace RSS feeds
authorTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 18:09:11 +0000 (19:09 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 18:09:11 +0000 (19:09 +0100)
Fixes #1034

app/controllers/trace_controller.rb
app/views/layouts/site.rss.builder [deleted file]

index 07a6fe21023b4c34c46cde7fa130bdaaa07d1b60..cfacad6a4e197d77262e12bb216c0f885a0ebe35 100644 (file)
@@ -1,5 +1,5 @@
 class TraceController < ApplicationController
-  layout "site"
+  layout "site", :except => :georss
 
   skip_before_action :verify_authenticity_token, :only => [:api_create, :api_read, :api_update, :api_delete, :api_data]
   before_action :authorize_web
diff --git a/app/views/layouts/site.rss.builder b/app/views/layouts/site.rss.builder
deleted file mode 100644 (file)
index 90198e8..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-xml.instruct!
-xml << yield