Sha256: 95348a6403c8ef87fc0ec07e87ce1ee9d60836da749ba93808f6212520796398
Contents?: true
Size: 410 Bytes
Versions: 31
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Decidim class VersionAuthorCell < Decidim::ViewModel include Decidim::ApplicationHelper include Decidim::SanitizeHelper def author model end def author_name return nil unless author return author if author.is_a?(String) return t("decidim.version_author.show.deleted") if author.deleted? author.name end end end
Version data entries
31 entries across 31 versions & 1 rubygems