Class: Decidim::Assemblies::AssemblyPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
decidim-assemblies/app/presenters/decidim/assemblies/assembly_presenter.rb

Instance Method Summary collapse

Instance Method Details

#assemblyObject


14
15
16
# File 'decidim-assemblies/app/presenters/decidim/assemblies/assembly_presenter.rb', line 14

def assembly
  __getobj__
end

10
11
12
# File 'decidim-assemblies/app/presenters/decidim/assemblies/assembly_presenter.rb', line 10

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

#hero_image_urlObject


6
7
8
# File 'decidim-assemblies/app/presenters/decidim/assemblies/assembly_presenter.rb', line 6

def hero_image_url
  assembly.attached_uploader(:hero_image).url(host: assembly.organization.host)
end