Class: Decidim::InitiativePresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
decidim-initiatives/app/presenters/decidim/initiative_presenter.rb

Overview

Decorator for initiatives

Instance Method Summary collapse

Instance Method Details

#authorObject



8
9
10
11
12
13
14
# File 'decidim-initiatives/app/presenters/decidim/initiative_presenter.rb', line 8

def author
  @author ||= if user_group
                Decidim::UserGroupPresenter.new(user_group)
              else
                Decidim::UserPresenter.new(super)
              end
end