RSS for topics in a category
Creates a new route for category RSS
This commit is contained in:
@@ -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={})
|
||||
|
||||
Reference in New Issue
Block a user