Sha256: 200e44a7679cc7325a93b4173f13291e7a64c0915f3d8a30d0f45a262ab79cce
Contents?: true
Size: 553 Bytes
Versions: 7
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals module Admin # This class contains helpers needed to format Meetings # in order to use them in select forms for Proposals. # module ProposalsHelper # Public: A formatted collection of Meetings to be used # in forms. def meetings_as_authors_selected return unless @proposal.present? && @proposal.official_meeting? @meetings_as_authors_selected ||= @proposal.authors.pluck(:id) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems