Sha256: e436ea630c5c0f3b346661059e07ee7518ee86763dddd61fc805ccc5e0b39922
Contents?: true
Size: 556 Bytes
Versions: 18
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses class ParticipatoryProcessGroupPresenter < SimpleDelegator include Rails.application.routes.mounted_helpers include ActionView::Helpers::UrlHelper delegate :url, to: :hero_image, prefix: true def hero_image_url return if process_group.blank? URI.join(decidim.root_url(host: process_group.organization.host), process_group.try(:hero_image_url)).to_s end def process_group __getobj__ end end end end
Version data entries
18 entries across 18 versions & 1 rubygems