Skip to content

Commit

Permalink
Tiny code comment changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 17, 2013
1 parent 4981324 commit f8c4149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/controllers/refinery/blog/posts_controller.rb
Expand Up @@ -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|
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -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

Expand Down

0 comments on commit f8c4149

Please sign in to comment.