Class: Decidim::Admin::ConferenceSpeakerPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
decidim-conferences/app/presenters/decidim/admin/conference_speaker_presenter.rb

Overview

Decorator for conference speakers

Instance Method Summary collapse

Instance Method Details

#nameObject



9
10
11
12
13
14
15
# File 'decidim-conferences/app/presenters/decidim/admin/conference_speaker_presenter.rb', line 9

def name
  if user
    "#{user.name} (#{Decidim::UserPresenter.new(user).nickname})"
  else
    full_name
  end
end