Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupPresenter

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ActionView::Helpers::UrlHelper
Defined in:
decidim-participatory_processes/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb

Instance Method Summary collapse

Instance Method Details

#hero_image_urlObject


11
12
13
14
15
# File 'decidim-participatory_processes/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb', line 11

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

#process_groupObject


17
18
19
# File 'decidim-participatory_processes/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb', line 17

def process_group
  __getobj__
end