Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::ParticipatoryProcesses::ParticipatoryProcessPresenter
- Defined in:
- app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
Instance Method Summary collapse
Instance Method Details
#area_name ⇒ Object
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_url ⇒ Object
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 |
#process ⇒ Object
16 17 18 |
# File 'app/presenters/decidim/participatory_processes/participatory_process_presenter.rb', line 16 def process __getobj__ end |