Sha256: a79c719cec57815ffb03b5ee6111f4c302214529a9c93c8ff1d44525937a358e

Contents?: true

Size: 445 Bytes

Versions: 31

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    class ParticipatoryProcessPresenter < SimpleDelegator
      def hero_image_url
        process.attached_uploader(:hero_image).url(host: process.organization.host)
      end

      def banner_image_url
        process.attached_uploader(:banner_image).url(host: process.organization.host)
      end

      def process
        __getobj__
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.27.9 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.8 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.7 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.6 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.10 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.9 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.5 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.8 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.4 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.3 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.7 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.5 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.4 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.0 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.3 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.0.rc2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.27.0.rc1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb