Class: Decidim::AssemblyMember

Inherits:
ApplicationRecord show all
Includes:
HasUploadValidations, Loggable, Traceable
Defined in:
decidim-assemblies/app/models/decidim/assembly_member.rb

Overview

It represents a member of the assembly (president, secretary, …) Can be linked to an existent user in the platform

Constant Summary collapse

POSITIONS =
%w(president vice_president secretary other).freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasUploadValidations

#attached_uploader, #maximum_avatar_size, #maximum_upload_size

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


26
27
28
# File 'decidim-assemblies/app/models/decidim/assembly_member.rb', line 26

def self.log_presenter_class_for(_log)
  Decidim::Assemblies::AdminLog::AssemblyMemberPresenter
end

Instance Method Details

#remove_non_user_avatarObject


30
31
32
# File 'decidim-assemblies/app/models/decidim/assembly_member.rb', line 30

def remove_non_user_avatar
  false
end