Sha256: 8c0715a74b1c22bd257ab5a55ac66454605f8c9d550123a1697b80abb543128d

Contents?: true

Size: 446 Bytes

Versions: 7

Compression:

Stored size: 446 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
      end

      private

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-debates-0.13.1 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.12.2 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.13.0 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.12.1 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.13.0.pre1 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.12.0 app/cells/decidim/debates/debate_cell.rb
decidim-debates-0.12.0.pre app/cells/decidim/debates/debate_cell.rb