decidim-module-votings/app/cells/decidim/votings/voting_cell.rb
# frozen_string_literal: true
require "cell/partial"
module Decidim
module Votings
# This cell renders the proposal card for an instance of a Voting
# the default size is the Medium Card (:m)
class VotingCell < Decidim::ViewModel
include Cell::ViewModel::Partial
def show
cell card_size, model
end
private
def card_size
"decidim/votings/voting_m"
end
def resource_path
resource_locator(model).path
end
end
end
end