From f8c41499c71db96674652177544a07de71704619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Mon, 17 Jun 2013 11:48:02 +0300 Subject: Tiny code comment changes. --- app/controllers/refinery/blog/posts_controller.rb | 3 +-- readme.md | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index dbb2af8..05cd2d6 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -9,10 +9,9 @@ module Refinery respond_to :html, :js, :rss def index - # Rss feeders are greedy. Let's give them every blog post instead of paginating. if request.format.rss? @posts = Post.live.includes(:comments, :categories) - #limit rss feed for services (like feedburner) who have max size + # limit rss feed for services (like feedburner) who have max size @posts = Post.recent(params["max_results"]) if params["max_results"].present? end respond_with (@posts) do |format| diff --git a/readme.md b/readme.md index 2fda6df..be1a67f 100644 --- a/readme.md +++ b/readme.md @@ -10,9 +10,9 @@ Options: * [ShareThis.com](http://sharethis.com) support on posts. To enable, set your key in Refinery's settings area. ## Additional Features -* to limit rss feed length, use the 'max_results' parameter +* To limit rss feed length, use the 'max_results' parameter - http://test.host/blog/feed/rss?max_results=10 + http://test.host/blog/feed.rss?max_results=10 ## Requirements -- cgit v1.2.3