Sha256: 4392692241c9fa22a7d154026336beedbf5a5818b185cb36e0a8a33611812c28

Contents?: true

Size: 455 Bytes

Versions: 65

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    # This cell renders the debate card for an instance of a Debate
    # the default size is the Medium Card (:m)
    class DebateCell < Decidim::ViewModel
      include DebateCellsHelper
      include Cell::ViewModel::Partial

      def show
        cell card_size, model, options
      end

      private

      def card_size
        "decidim/debates/debate_m"
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
decidim-debates-0.15.0 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.14.4 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.14.3 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.14.2 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.14.1 app/cells/decidim/debates/debate_cell.rb