Class: HelpCenter::SupportCategoriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- HelpCenter::SupportCategoriesController
- Defined in:
- app/controllers/help_center/support_categories_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#is_moderator?, #is_moderator_or_owner?, #page_number, #require_mod_or_author_for_post!, #require_mod_or_author_for_thread!
Instance Method Details
#index ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/help_center/support_categories_controller.rb', line 4 def index @support_threads = SupportThread.where(support_category: @category) if @category.present? @support_threads = @support_threads.pinned_first.sorted.includes(:user, :support_category).paginate(per_page: 10, page: page_number) render "help_center/support_threads/index" end |