Class: Decidim::ParticipatoryProcesses::Admin::ParticipatoryProcessLandingPageController
- Inherits:
-
ApplicationController
- Object
- Admin::ApplicationController
- ApplicationController
- Decidim::ParticipatoryProcesses::Admin::ParticipatoryProcessLandingPageController
- Includes:
- Admin::ContentBlocks::LandingPage, Concerns::ParticipatoryProcessAdmin
- Defined in:
- app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb
Overview
Controller that allows managing the participatory process landing page
Instance Method Summary collapse
- #content_block_scope ⇒ Object
- #enforce_permission_to_update_resource ⇒ Object
- #resource_content_block_cell ⇒ Object
- #resource_create_url(manifest_name) ⇒ Object
- #resource_sort_url ⇒ Object
Instance Method Details
#content_block_scope ⇒ Object
13 14 15 |
# File 'app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb', line 13 def content_block_scope current_participatory_space_manifest.content_blocks_scope_name end |
#enforce_permission_to_update_resource ⇒ Object
19 20 21 |
# File 'app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb', line 19 def :update, :process, process: scoped_resource end |
#resource_content_block_cell ⇒ Object
31 32 33 |
# File 'app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb', line 31 def resource_content_block_cell "decidim/participatory_processes/content_block" end |
#resource_create_url(manifest_name) ⇒ Object
27 28 29 |
# File 'app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb', line 27 def resource_create_url(manifest_name) participatory_process_landing_page_content_blocks_path(slug: params[:slug], manifest_name:) end |
#resource_sort_url ⇒ Object
23 24 25 |
# File 'app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb', line 23 def resource_sort_url participatory_process_landing_page_path(scoped_resource) end |