Class: Decidim::AttachmentPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::AttachmentPresenter
- Includes:
- ActionView::Helpers::UrlHelper
- Defined in:
- app/presenters/decidim/attachment_presenter.rb
Overview
Decorator for attachments
Instance Method Summary collapse
Instance Method Details
#attachment ⇒ Object
17 18 19 |
# File 'app/presenters/decidim/attachment_presenter.rb', line 17 def __getobj__ end |
#attachment_file_url ⇒ Object
13 14 15 |
# File 'app/presenters/decidim/attachment_presenter.rb', line 13 def URI.join(decidim.root_url(host: .attached_to.organization.host), .file_url).to_s end |