Class: Decidim::Assemblies::Admin::AssemblyUserRoleForm

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#rolesObject


20
21
22
23
24
25
26
27
# File 'decidim-assemblies/app/forms/decidim/assemblies/admin/assembly_user_role_form.rb', line 20

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