Sha256: bc9df1d24e2bb723b73883091634b4f260cf0b85ba5b8a3e6b89baa027d2a974
Contents?: true
Size: 485 Bytes
Versions: 7
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings # This cell renders the card for an instance of a Voting # the default size is the Search Card (:s) class VotingCell < Decidim::ViewModel def show cell card_size, model, options end private def card_size case @options[:size] when :s "decidim/votings/voting_s" else "decidim/votings/voting_g" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems