Browse files

Tiny code comment changes.

  • Loading branch information...
1 parent 4981324 commit f8c41499c71db96674652177544a07de71704619 @ugisozols ugisozols committed Jun 17, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −2 app/controllers/refinery/blog/posts_controller.rb
  2. +2 −2 readme.md
View
3 app/controllers/refinery/blog/posts_controller.rb
@@ -9,10 +9,9 @@ class PostsController < BlogController
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|
View
4 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

0 comments on commit f8c4149

Please sign in to comment.