Sha256: 8db376bb1e16e121dcbdbecca268aa74062d2b5ae6dd13e0727ea3737d35b2a6
Contents?: true
Size: 612 Bytes
Versions: 16
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This class contains helpers needed to format ParticipatoryProcesses # in order to use them in select forms. # module ProcessesForSelectHelper # Public: A formatted collection of ParticipatoryProcesses to be used # in forms. # # Returns an Array. def processes_for_select @processes_for_select ||= current_organization.participatory_processes.map do |process| [ translated_attribute(process.title), process.id ] end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems