Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupPresenter

Inherits:
SimpleDelegator
  • Object
show all
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


6
7
8
9
10
# File 'decidim-participatory_processes/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb', line 6

def hero_image_url
  return if process_group.blank?

  process_group.attached_uploader(:hero_image).url(host: process_group.organization.host)
end

#process_groupObject


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

def process_group
  __getobj__
end