aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-11 16:04:59 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-12 14:57:44 +0000
commitd98732783b14869aca818d0c204bfb6e67b268d7 (patch)
treef73b7b6b1e4d0253cb6527d666269542485f53c3 /app/controllers/track_controller.rb
parentc0c79a024d6cbfdea18fd87d620c856d8dfc43ef (diff)
Don't specify format in template name.
In render calls, that's now deprecated in favour of using the :formats option.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 40fa69290..9e41e35f9 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -160,7 +160,10 @@ class TrackController < ApplicationController
format.json { render :json => @xapian_object.results.map { |r| r[:model].json_for_api(true,
lambda { |t| view_context.highlight_and_excerpt(t, @xapian_object.words_to_highlight, 150) }
) } }
- format.any { render :template => 'track/atom_feed.atom', :layout => false, :content_type => 'application/atom+xml' }
+ format.any { render :template => 'track/atom_feed',
+ :formats => ['atom'],
+ :layout => false,
+ :content_type => 'application/atom+xml' }
end
end