Class: Decidim::AssemblyUserRole

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

Overview

Defines a relation between a user and an assembly, and what kind of relation does the user have.

Constant Summary collapse

ROLES =
%w(admin collaborator moderator valuator).freeze

Class Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


18
19
20
# File 'decidim-assemblies/app/models/decidim/assembly_user_role.rb', line 18

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