Class: Decidim::ConferenceSpeaker

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasUploadValidations, Loggable, Publicable, Traceable, TranslatableResource
Defined in:
app/models/decidim/conference_speaker.rb

Overview

It represents a speaker of the conference Can be linked to an existent user in the platform

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



31
32
33
# File 'app/models/decidim/conference_speaker.rb', line 31

def self.log_presenter_class_for(_log)
  Decidim::Conferences::AdminLog::ConferenceSpeakerPresenter
end

Instance Method Details

#twitter_handleObject



35
36
37
# File 'app/models/decidim/conference_speaker.rb', line 35

def twitter_handle
  attributes["twitter_handle"].to_s.delete("@")
end