basic implementation of per-category new/latest etc filters

This commit is contained in:
Sam
2013-10-24 21:05:06 +11:00
parent 89f801ac04
commit b7d3b52e4f
5 changed files with 18 additions and 5 deletions

View File

@ -139,7 +139,8 @@ class ListController < ApplicationController
return {
page: params[:page],
topic_ids: param_to_integer_list(:topic_ids),
exclude_category: (params[:exclude_category] || menu_item.try(:filter))
exclude_category: (params[:exclude_category] || menu_item.try(:filter)),
category: params[:category]
}
end