Class: Decidim::Proposals::Admin::PreviewParticipatoryTextForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/proposals/admin/preview_participatory_text_form.rb

Overview

A form object to be used when admin users want to review a collection of proposals from a participatory text.

Instance Method Summary collapse

Instance Method Details

#from_models(proposals) ⇒ Object



11
12
13
14
15
# File 'app/forms/decidim/proposals/admin/preview_participatory_text_form.rb', line 11

def from_models(proposals)
  self.proposals = proposals.collect do |proposal|
    Admin::ParticipatoryTextProposalForm.from_model(proposal)
  end
end

#proposals_attributes=(attributes) ⇒ Object



17
# File 'app/forms/decidim/proposals/admin/preview_participatory_text_form.rb', line 17

def proposals_attributes=(attributes); end