Sha256: b8f70898e1fe593f6ac11f9149580e4c010027f7f13bd37ed9f0ac4a9e378484
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true module Decidim module DecidimAwesome module Proposals ## # Decorate create_proposal to avoid # private data to be in PaperTrail module CreateProposalOverride extend ActiveSupport::Concern included do private alias_method :decidim_original_create_proposal, :create_proposal def create_proposal created_proposal = decidim_original_create_proposal # Update the proposal with the private body, to # avoid tracebility on private fields. created_proposal.update_private_body!(form.private_body) if form.private_body.present? end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems