Class: Decidim::Debates::DebatePresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::Debates::DebatePresenter
- Defined in:
- app/presenters/decidim/debates/debate_presenter.rb
Overview
Decorator for debates
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/presenters/decidim/debates/debate_presenter.rb', line 9 def ||= if official? Decidim::Debates::OfficialAuthorPresenter.new elsif user_group Decidim::UserGroupPresenter.new(user_group) else Decidim::UserPresenter.new(super) end end |