Class: Decidim::Accountability::ResultPresenter
- Inherits:
-
ResourcePresenter
- Object
- SimpleDelegator
- ResourcePresenter
- Decidim::Accountability::ResultPresenter
- Includes:
- ActionView::Helpers::UrlHelper, SanitizeHelper
- Defined in:
- decidim-accountability/app/presenters/decidim/accountability/result_presenter.rb
Overview
Decorator for results
Instance Method Summary collapse
- #result ⇒ Object
-
#title(html_escape: false, all_locales: false) ⇒ Object
Render the result title.
Methods included from SanitizeHelper
#decidim_escape_translated, #decidim_html_escape, #decidim_rich_text, #decidim_sanitize, #decidim_sanitize_admin, #decidim_sanitize_editor, #decidim_sanitize_editor_admin, #decidim_sanitize_newsletter, #decidim_sanitize_translated, #decidim_url_escape, included
Methods inherited from ResourcePresenter
#editor_locales, #handle_locales
Methods included from TranslatableAttributes
#attachment?, #default_locale?
Instance Method Details
#result ⇒ Object
13 14 15 |
# File 'decidim-accountability/app/presenters/decidim/accountability/result_presenter.rb', line 13 def result __getobj__ end |
#title(html_escape: false, all_locales: false) ⇒ Object
Render the result title
Returns a String.
20 21 22 23 24 |
# File 'decidim-accountability/app/presenters/decidim/accountability/result_presenter.rb', line 20 def title(html_escape: false, all_locales: false) return unless result super(result.title, html_escape, all_locales) end |