Sha256: 01549879eddc68909c95c0cfc6f8b52dbd36e6caa09f14414e7016e8843c6248

Contents?: true

Size: 550 Bytes

Versions: 7

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

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

      def edit_content_block_path
        decidim_votings.edit_voting_landing_page_content_block_path(scoped_resource, model)
      end

      def content_block_path
        decidim_votings.voting_landing_page_content_block_path(scoped_resource, model)
      end

      def decidim_votings
        Decidim::Votings::AdminEngine.routes.url_helpers
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.3 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.2 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.1 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.0 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.0.rc5 app/cells/decidim/votings/content_block_cell.rb
decidim-elections-0.28.0.rc4 app/cells/decidim/votings/content_block_cell.rb