Sha256: d9305cd7266dd27258d57f21956a5056ea57e30f462a0f90f54a53a3e0541110
Contents?: true
Size: 386 Bytes
Versions: 15
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true module Decidim module Forms # # Decorator for answer_options # class AnswerOptionPresenter < SimpleDelegator include Decidim::TranslationsHelper def translated_body @translated_body ||= translated_attribute body end def as_json(*_args) { id:, body: translated_body } end end end end
Version data entries
15 entries across 15 versions & 1 rubygems