Sha256: 28978046e1916a6a21a2ed762e1d7dd9a2f63c5eed0d5d75d2c20b0b731481c3

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

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

      def edit_content_block_path
        decidim_admin.edit_static_page_content_block_path(scoped_resource, model)
      end

      def content_block_path
        decidim_admin.static_page_content_block_path(scoped_resource, model)
      end

      def decidim_admin
        Decidim::Admin::Engine.routes.url_helpers
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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