Sha256: a2b19a75ec6f70e36c78880060ebe29ae440e6daaf809eda0e9e88f8ec90bc7a
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module Decidim module DecidimAwesome module Proposals ## # Decorates update draft and update proposal # to avoid private field to be logged in PaperTrail. module UpdateProposalOverride extend ActiveSupport::Concern include Admin::UpdateProposalOverride included do private alias_method :decidim_original_update_draft, :update_draft def update_proposal decidim_original_update_proposal update_private_field! end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-decidim_awesome-0.11.1 | app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb |