Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessPresenter

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

Instance Method Summary collapse

Instance Method Details


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

def banner_image_url
  return unless process.banner_image_url

  URI.join(decidim.root_url(host: process.organization.host), process.banner_image_url).to_s
end

#hero_image_urlObject


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

def hero_image_url
  return unless process.hero_image_url

  URI.join(decidim.root_url(host: process.organization.host), process.hero_image_url).to_s
end

#processObject


21
22
23
# File 'decidim-participatory_processes/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb', line 21

def process
  __getobj__
end