Class: Decidim::Elections::ElectionPresenter
- Inherits:
-
ResourcePresenter
- Object
- SimpleDelegator
- ResourcePresenter
- Decidim::Elections::ElectionPresenter
- Includes:
- ActionView::Helpers::UrlHelper, ResourceHelper, SanitizeHelper
- Defined in:
- decidim-elections/app/presenters/decidim/elections/election_presenter.rb
Instance Method Summary collapse
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 included from ResourceHelper
#linked_classes_filter_values_for, #linked_classes_for, #resource_locator
Methods inherited from ResourcePresenter
#editor_locales, #handle_locales
Methods included from TranslatableAttributes
#attachment?, #default_locale?
Instance Method Details
#election ⇒ Object
10 11 12 |
# File 'decidim-elections/app/presenters/decidim/elections/election_presenter.rb', line 10 def election __getobj__ end |
#election_path ⇒ Object
14 15 16 17 18 |
# File 'decidim-elections/app/presenters/decidim/elections/election_presenter.rb', line 14 def election_path return nil unless election Decidim::ResourceLocatorPresenter.new(election).path end |
#title(html_escape: false, all_locales: false) ⇒ Object
20 21 22 23 24 |
# File 'decidim-elections/app/presenters/decidim/elections/election_presenter.rb', line 20 def title(html_escape: false, all_locales: false) return unless election super(election.title, html_escape, all_locales) end |