RSS for topics in a category

Creates a new route for category RSS
This commit is contained in:
Alexander
2013-02-27 19:36:12 -08:00
parent 0c8c41b131
commit fd240c1967
11 changed files with 85 additions and 12 deletions
+4
View File
@@ -114,6 +114,10 @@ class TopicQuery
new_results(limit: false).count
end
def list_new_in_category(category)
return_list {|l| l.where(category_id: category.id).by_newest.first(25)}
end
protected
def return_list(list_opts={})