Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupPresenter
- Includes:
- ActionView::Helpers::UrlHelper
- Defined in:
- app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb
Instance Method Summary collapse
Instance Method Details
#hero_image_url ⇒ Object
11 12 13 14 15 |
# File '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_group ⇒ Object
17 18 19 |
# File 'app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb', line 17 def process_group __getobj__ end |