Sha256: 47a1587757e73a41ab8edc04e2225fcc2bbe8edac3882c4b64321ab9b37653f8

Contents?: true

Size: 426 Bytes

Versions: 31

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    class AssemblyPresenter < SimpleDelegator
      def hero_image_url
        assembly.attached_uploader(:hero_image).url(host: assembly.organization.host)
      end

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

      def assembly
        __getobj__
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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