Class: Decidim::Problems::ProblemsController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Problems::ProblemsController
- Includes:
- ApplicationHelper, OrderableProblems, WithDefaultFilters, WithSdgs, FilterResource, Paginable
- Defined in:
- app/controllers/decidim/problems/problems_controller.rb
Overview
Controller that allows browsing problems.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
24 25 26 27 28 |
# File 'app/controllers/decidim/problems/problems_controller.rb', line 24 def index @problems = search.result @problems = reorder(@problems) @problems = paginate(@problems) end |