Skip to content

Commit

Permalink
Use canonical page_number instead of params[:page].
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 20, 2014
1 parent 41c4955 commit 596abd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/post/piclens.rss.builder
@@ -1,4 +1,4 @@
cache [@posts.map(&:id), params[:page]], :expires => 1.hour do
cache [@posts.map(&:id), page_number], :expires => 1.hour do
xml.instruct!
xml.rss :version => '2.0', :'xmlns:media' => 'http://search.yahoo.com/mrss/', :'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
xml.channel do
Expand Down

0 comments on commit 596abd1

Please sign in to comment.