Class: Decidim::ParticipatoryProcesses::Admin::ParticipatoryProcessUserRoleForm

Inherits:
Form
  • Object
show all
Defined in:
decidim-participatory_processes/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb

Overview

A form object used to create participatory process user roles from the admin dashboard.

Instance Method Summary collapse

Instance Method Details

#rolesObject


21
22
23
24
25
26
27
28
# File 'decidim-participatory_processes/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb', line 21

def roles
  Decidim::ParticipatoryProcessUserRole::ROLES.map do |role|
    [
      I18n.t(role, scope: "decidim.admin.models.participatory_process_user_role.roles"),
      role
    ]
  end
end