Class: Decidim::CategoryPresenter

Inherits:
SimpleDelegator
  • Object
show all
Includes:
TranslationsHelper
Defined in:
decidim-core/app/presenters/decidim/category_presenter.rb

Overview

Decorator for categories

Instance Method Summary collapse

Methods included from TranslationsHelper

empty_translatable, ensure_translatable, multi_translation, translated_in_current_locale?

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#translated_nameObject



10
11
12
# File 'decidim-core/app/presenters/decidim/category_presenter.rb', line 10

def translated_name
  @translated_name ||= translated_attribute name
end