Class: Decidim::TaxonomyPresenter
- Inherits:
-
ResourcePresenter
- Object
- SimpleDelegator
- ResourcePresenter
- Decidim::TaxonomyPresenter
- Includes:
- TranslationsHelper
- Defined in:
- decidim-core/app/presenters/decidim/taxonomy_presenter.rb
Overview
Decorator for taxonomies.
Instance Method Summary collapse
Methods included from TranslationsHelper
empty_translatable, ensure_translatable, multi_translation, translated_in_current_locale?
Methods included from TranslatableAttributes
#attachment?, #default_locale?
Methods inherited from ResourcePresenter
#editor_locales, #handle_locales
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
Instance Method Details
#title(links: false, html_escape: false, all_locales: false) ⇒ Object
14 15 16 |
# File 'decidim-core/app/presenters/decidim/taxonomy_presenter.rb', line 14 def title(links: false, html_escape: false, all_locales: false) super(name, links, html_escape, all_locales) end |
#translated_name ⇒ Object
10 11 12 |
# File 'decidim-core/app/presenters/decidim/taxonomy_presenter.rb', line 10 def translated_name @translated_name ||= translated_attribute name end |