Class: Decidim::AreaPresenter

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

Overview

Decorator for areas

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 'app/presenters/decidim/area_presenter.rb', line 10

def translated_name
  @translated_name ||= translated_attribute name
end