Class: Decidim::Votings::VotingPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::Votings::VotingPresenter
- Includes:
- SanitizeHelper, TranslatableAttributes
- Defined in:
- app/presenters/decidim/votings/voting_presenter.rb
Instance Method Summary collapse
Instance Method Details
#banner_image_url ⇒ Object
18 19 20 |
# File 'app/presenters/decidim/votings/voting_presenter.rb', line 18 def voting.attached_uploader(:banner_image).url(host: voting.organization.host) end |
#introductory_image_url ⇒ Object
14 15 16 |
# File 'app/presenters/decidim/votings/voting_presenter.rb', line 14 def introductory_image_url voting.attached_uploader(:introductory_image).url(host: voting.organization.host) end |
#title ⇒ Object
9 10 11 12 |
# File 'app/presenters/decidim/votings/voting_presenter.rb', line 9 def title content = translated_attribute(voting.title) decidim_html_escape(content) end |
#voting ⇒ Object
22 23 24 |
# File 'app/presenters/decidim/votings/voting_presenter.rb', line 22 def voting __getobj__ end |