Class: Decidim::Budgets::BudgetsController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Budgets::BudgetsController
- Defined in:
- decidim-budgets/app/controllers/decidim/budgets/budgets_controller.rb
Overview
Exposes the budget resources so users can participate on them
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_workflow, #show_votes_count?, #voting_finished?, #voting_open?
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'decidim-budgets/app/controllers/decidim/budgets/budgets_controller.rb', line 7 def index redirect_to budget_projects_path(current_workflow.single) if current_workflow.single? end |
#show ⇒ Object
11 12 13 14 15 |
# File 'decidim-budgets/app/controllers/decidim/budgets/budgets_controller.rb', line 11 def show raise ActionController::RoutingError, "Not Found" unless budget redirect_to budget_projects_path(budget) end |