app/commands/decidim/proposals/admin/import_proposals.rb in decidim-proposals-0.12.2 vs app/commands/decidim/proposals/admin/import_proposals.rb in decidim-proposals-0.13.0.pre1

- old
+ new

@@ -50,9 +50,12 @@ proposal.category = original_proposal.category proposal.component = target_component proposal.save! proposal.link_resources([original_proposal], "copied_from_component") + original_proposal.coauthorships.each do |coauthorship| + Decidim::Coauthorship.create(author: coauthorship.author, user_group: coauthorship.user_group, coauthorable: proposal) + end end.compact end def proposals Decidim::Proposals::Proposal