Sha256: edb64ff803cdfb287b8fc9c15ec6eb659980789109a9dd5af7d9fa65aa4f3869
Contents?: true
Size: 576 Bytes
Versions: 31
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This cell renders the Small (:s) process group card # for an given instance of a ParticipatoryProcessGroup class ProcessGroupSCell < Decidim::CardMCell private def has_image? model.hero_image.attached? end def resource_path Decidim::ParticipatoryProcesses::Engine.routes.url_helpers.participatory_process_group_path(model) end def resource_image_path model.attached_uploader(:hero_image).path end end end end
Version data entries
31 entries across 31 versions & 1 rubygems