Sha256: 56e0682e105fcdc0285a0df7932731d87237aac98139dea62e1d0a56521a0158
Contents?: true
Size: 389 Bytes
Versions: 45
Compression:
Stored size: 389 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: id, body: translated_body } end end end end
Version data entries
45 entries across 45 versions & 1 rubygems