Class: Decidim::Budgets::BudgetsController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Components::BaseController
- ApplicationController
- Decidim::Budgets::BudgetsController
- Includes:
- Orderable, TranslatableAttributes
- 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 included from TranslatableAttributes
Methods inherited from ApplicationController
#current_workflow, #voting_finished?, #voting_open?
Methods inherited from Components::BaseController
#current_component, #current_manifest, #current_participatory_space, #permission_class_chain, #permission_scope, #redirect_unless_feature_private, #set_component_breadcrumb_item, #share_token
Methods included from RegistersPermissions
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
12 13 14 |
# File 'decidim-budgets/app/controllers/decidim/budgets/budgets_controller.rb', line 12 def index redirect_to budget_projects_path(current_workflow.single) if current_workflow.single? end |
#show ⇒ Object
16 17 18 19 20 |
# File 'decidim-budgets/app/controllers/decidim/budgets/budgets_controller.rb', line 16 def show raise ActionController::RoutingError, "Not Found" unless budget redirect_to budget_projects_path(budget) end |