Sha256: 4744d9e2d231180f578d2e5f7d1e4c80729989088ee6b7c5563d829b8816018a

Contents?: true

Size: 569 Bytes

Versions: 13

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    class ContentBlockCell < Decidim::Admin::ContentBlockCell
      delegate :scoped_resource, to: :controller

      def edit_content_block_path
        decidim_assemblies.edit_assembly_landing_page_content_block_path(scoped_resource, model)
      end

      def content_block_path
        decidim_assemblies.assembly_landing_page_content_block_path(scoped_resource, model)
      end

      def decidim_assemblies
        Decidim::Assemblies::AdminEngine.routes.url_helpers
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-assemblies-0.29.1 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.4 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.29.0 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.3 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.29.0.rc4 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.29.0.rc3 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.29.0.rc2 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.29.0.rc1 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.2 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.1 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.0 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.0.rc5 app/cells/decidim/assemblies/content_block_cell.rb
decidim-assemblies-0.28.0.rc4 app/cells/decidim/assemblies/content_block_cell.rb