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

Version Path
decidim-proposals-0.18.1 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.17.2 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.18.0 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.17.1 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.16.1 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.17.0 app/helpers/decidim/proposals/admin/proposals_helper.rb
decidim-proposals-0.16.0 app/helpers/decidim/proposals/admin/proposals_helper.rb