Class: Decidim::Conferences::Admin::ConferenceUserRoleForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/conferences/admin/conference_user_role_form.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#rolesObject



19
20
21
22
23
24
25
26
# File 'app/forms/decidim/conferences/admin/conference_user_role_form.rb', line 19

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