Sha256: 96d208a12ca2f968186e7489d0e964490965940815c838c4cab123520ea6079e
Contents?: true
Size: 609 Bytes
Versions: 8
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This class contains helpers needed to format ParticipatoryProcessGroups # in order to use them in select forms. # module ProcessGroupsForSelectHelper # Public: A formatted collection of ParticipatoryProcessGroups to be used # in forms. # # Returns an Array. def process_groups_for_select @process_groups_for_select ||= current_organization.participatory_process_groups.map do |group| [translated_attribute(group.name), group.id] end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems