Class: Decidim::ConferenceSpeaker

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasUploadValidations, Loggable, 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



29
30
31
# File 'app/models/decidim/conference_speaker.rb', line 29

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

Instance Method Details

#twitter_handleObject



33
34
35
# File 'app/models/decidim/conference_speaker.rb', line 33

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