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.26.1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.0 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.0.rc2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.26.0.rc1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.0 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.0.rc4 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.0.rc3 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.0.rc2 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
decidim-participatory_processes-0.25.0.rc1 app/presenters/decidim/participatory_processes/participatory_process_presenter.rb