Class: Decidim::ConferenceSpeaker

Inherits:
ApplicationRecord show all
Includes:
HasUploadValidations, Loggable, Traceable, TranslatableResource
Defined in:
decidim-conferences/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

Methods included from HasUploadValidations

#maximum_avatar_size, #maximum_upload_size

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


29
30
31
# File 'decidim-conferences/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 'decidim-conferences/app/models/decidim/conference_speaker.rb', line 33

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