Sha256: e51d539cecc5d8c52b7c635e61d85794d29f366b77af6cada52ec5262d544ae5
Contents?: true
Size: 407 Bytes
Versions: 13
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin class ParticipatorySpaceAdminUserForm < ParticipatorySpacePrivateUserForm attribute :role, String validates :role, presence: true validates :role, inclusion: { in: ParticipatorySpaceUser::ROLES } def roles ParticipatorySpaceUser::ROLES.map { |role| [I18n.t(role, scope:), role] } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems