Sha256: cf6b012528d4cc4fc8fd843c3b2c6540ce3932355ed77124744f763d472b9314
Contents?: true
Size: 1.05 KB
Versions: 18
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Decidim module Assemblies module Admin # Controller that allows managing the assembly landing page class AssemblyLandingPageController < Decidim::Assemblies::Admin::ApplicationController include Decidim::Admin::ContentBlocks::LandingPage include Concerns::AssemblyAdmin layout "decidim/admin/assembly" def content_block_scope current_participatory_space_manifest.content_blocks_scope_name end alias scoped_resource current_participatory_space def enforce_permission_to_update_resource enforce_permission_to :update, :assembly, assembly: scoped_resource end def resource_sort_url assembly_landing_page_path(scoped_resource) end def resource_create_url(manifest_name) assembly_landing_page_content_blocks_path(slug: params[:slug], manifest_name:) end def resource_content_block_cell "decidim/assemblies/content_block" end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems