Sha256: 456eccfb707514d9aee98ddebed2d6f436306c9e8c40ca0f716f719315c38c43
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true module Decidim module Slider module Admin # When upgrading to Decidim 0.28, use Decidim::Admin::ContentBlockCell instead of Decidim::ViewModel # And delete the show template corresponding to this cell class AdministrableContentBlockCell < Decidim::ViewModel include Decidim::IconHelper delegate :public_name_key, :has_settings?, to: :model delegate :content_block_destroy_confirmation_text, to: :controller def edit_content_block_path decidim_admin_slider.edit_tab_path(model) end def content_block_path decidim_admin_slider.tab_path(model) end def decidim_admin_slider Decidim::Slider::AdminEngine.routes.url_helpers end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems