Class: Decidim::AttachmentPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/decidim/attachment_presenter.rb

Overview

Decorator for attachments

Instance Method Summary collapse

Instance Method Details

#attachmentObject



12
13
14
# File 'app/presenters/decidim/attachment_presenter.rb', line 12

def attachment
  __getobj__
end

#attachment_file_urlObject



8
9
10
# File 'app/presenters/decidim/attachment_presenter.rb', line 8

def attachment_file_url
  attachment.attached_uploader(:file).url(host: attached_to.organization.host)
end