Class: Decidim::AreaTypePresenter

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

Overview

Decorator for area types

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_type_presenter.rb', line 10

def translated_name
  @translated_name ||= translated_attribute name
end