Sha256: e516cc0182130224cf56fdc013075c4aabbf4c8f19e1d612d250b7fbe56cb529
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals # # Decorator for proposals # class ProposalPresenter < SimpleDelegator def author @author ||= if official? Decidim::Proposals::OfficialAuthorPresenter.new elsif user_group Decidim::UserGroupPresenter.new(user_group) else Decidim::UserPresenter.new(super) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems