Class: Decidim::Assemblies::Admin::AssemblyLandingPageController
- Inherits:
-
ApplicationController
- Object
- Decidim::Admin::ApplicationController
- ApplicationController
- Decidim::Assemblies::Admin::AssemblyLandingPageController
- Includes:
- Decidim::Admin::ContentBlocks::LandingPage, Concerns::AssemblyAdmin
- Defined in:
- app/controllers/decidim/assemblies/admin/assembly_landing_page_controller.rb
Overview
Controller that allows managing the assembly 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/assemblies/admin/assembly_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/assemblies/admin/assembly_landing_page_controller.rb', line 19 def :update, :assembly, assembly: scoped_resource end |
#resource_content_block_cell ⇒ Object
31 32 33 |
# File 'app/controllers/decidim/assemblies/admin/assembly_landing_page_controller.rb', line 31 def resource_content_block_cell "decidim/assemblies/content_block" end |
#resource_create_url(manifest_name) ⇒ Object
27 28 29 |
# File 'app/controllers/decidim/assemblies/admin/assembly_landing_page_controller.rb', line 27 def resource_create_url(manifest_name) assembly_landing_page_content_blocks_path(slug: params[:slug], manifest_name:) end |
#resource_sort_url ⇒ Object
23 24 25 |
# File 'app/controllers/decidim/assemblies/admin/assembly_landing_page_controller.rb', line 23 def resource_sort_url assembly_landing_page_path(scoped_resource) end |