Sha256: 845df5d2f2b8aed0dfdaf9663d2c440da9d5bc13feb32131edbe7f686cd02452
Contents?: true
Size: 538 Bytes
Versions: 45
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments # This cell renders the Medium (:m) comment card # for an given instance of a Comment class CommentMCell < Decidim::CardMCell include CommentCellsHelper def statuses [] end def comment model end def has_header? false end delegate :participatory_space, to: :model def description strip_tags(model.formatted_body).truncate(200, separator: /\s/) end end end end
Version data entries
45 entries across 45 versions & 1 rubygems