aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-07-22 07:29:59 -0700
committerJoe Sak <joe@joesak.com>2011-07-22 07:29:59 -0700
commite5db679226bac7ef8ddd568c40f52addd52d7a8a (patch)
tree56c851da6ae947e67d7052c2e949abe0a6ccba1b /app
parent5d493b154c97de5ba4558ced644ecf0f666df1f5 (diff)
parent216959f3b4b5fea363bc66eb4f5e7d7b77976328 (diff)
downloadrefinerycms-blog-e5db679226bac7ef8ddd568c40f52addd52d7a8a.tar.gz
refinerycms-blog-e5db679226bac7ef8ddd568c40f52addd52d7a8a.tar.bz2
refinerycms-blog-e5db679226bac7ef8ddd568c40f52addd52d7a8a.zip
Merge pull request #103 from jackkinsella/master
Rss feed now shows all posts instead of a small number limited by pagination
Diffstat (limited to 'app')
-rw-r--r--app/controllers/blog/posts_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb
index 9dc595c..edac5ab 100644
--- a/app/controllers/blog/posts_controller.rb
+++ b/app/controllers/blog/posts_controller.rb
@@ -8,6 +8,8 @@ module Blog
respond_to :html, :js, :rss
def index
+ # Rss feeders are greedy. Let's give them every blog post instead of paginating.
+ (@blog_posts = BlogPost.live.includes(:comments, :categories).all) if request.format.rss?
respond_with (@blog_posts) do |format|
format.html
format.rss