Sha256: 51b37a8a092a62c0ed2ed5e06aa4530cdf5138d8614f6146e5f04f26117baa8a
Contents?: true
Size: 630 Bytes
Versions: 64
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals module Admin # A form object to be used when admin users want to review a collection of proposals # from a participatory text. class PreviewParticipatoryTextForm < Decidim::Form attribute :proposals, Array[Decidim::Proposals::Admin::ParticipatoryTextProposalForm] def from_models(proposals) self.proposals = proposals.collect do |proposal| Admin::ParticipatoryTextProposalForm.from_model(proposal) end end def proposals_attributes=(attributes); end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems