Sha256: 481db200efb5c7e5caea48b3800a1b298d1ce458692edde077310a122abd62d9

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    # This cell renders the card for an instance of a Question
    # the default size is the Medium Card (:m)
    class ConsultationCell < Decidim::ViewModel
      def show
        cell card_size, model
      end

      private

      def card_size
        "decidim/consultations/consultation_m"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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