Sha256: 9a0c52f08b422bd408b25b9a585a89d81d23fc14fdcbcecfaecc3b1c866a4ac3
Contents?: true
Size: 611 Bytes
Versions: 8
Compression:
Stored size: 611 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
8 entries across 8 versions & 2 rubygems