Class: Decidim::Forms::QuestionPresenter

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

Overview

Decorator for questions

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_bodyObject


11
12
13
# File 'decidim-forms/app/presenters/decidim/forms/question_presenter.rb', line 11

def translated_body
  @translated_body ||= translated_attribute body
end