Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/decidim/participatory_processes/participatory_process_presenter.rb

Instance Method Summary collapse

Instance Method Details

#area_nameObject



10
11
12
13
14
# File 'app/presenters/decidim/participatory_processes/participatory_process_presenter.rb', line 10

def area_name
  return if process.area.blank?

  Decidim::AreaPresenter.new(process.area).translated_name_with_type
end

#hero_image_urlObject



6
7
8
# File 'app/presenters/decidim/participatory_processes/participatory_process_presenter.rb', line 6

def hero_image_url
  process.attached_uploader(:hero_image).url(host: process.organization.host)
end

#processObject



16
17
18
# File 'app/presenters/decidim/participatory_processes/participatory_process_presenter.rb', line 16

def process
  __getobj__
end