Sha256: 901212a435a6f9bc3bbb09e800133aa7bc4424c8cb8e37e3748d747e8d31a8ad
Contents?: true
Size: 489 Bytes
Versions: 25
Compression:
Stored size: 489 Bytes
Contents
# frozen_string_literal: true module Decidim module Blogs # # Decorator for posts # class PostPresenter < SimpleDelegator def author @author ||= if official? Decidim::Blogs::OfficialAuthorPresenter.new elsif user_group? Decidim::UserGroupPresenter.new(super) else Decidim::UserPresenter.new(super) end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems