Sha256: 6308577c1bb4001222c2ca34484429e3218a29f6408e990b2b3c49606e9c6da1
Contents?: true
Size: 465 Bytes
Versions: 7
Compression:
Stored size: 465 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans # # Decorator for contents # class ContentPresenter < SimpleDelegator include Rails.application.routes.mounted_helpers include TranslatableAttributes def content __getobj__ end def title translated_attribute(content.title).html_safe end def body translated_attribute(content.body).html_safe end end end end
Version data entries
7 entries across 7 versions & 1 rubygems