Sha256: 1262dbe9a4f4e9df3f0733527495edca9eeb0bab7fb2cc212954626486fbfcec
Contents?: true
Size: 619 Bytes
Versions: 15
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true module Decidim module Templates # A command with all the business logic when duplicating a proposal's answer template module Admin class CopyProposalAnswerTemplate < CopyTemplate def copy_template @copied_template = Template.create!( organization: @template.organization, name: @template.name, description: @template.description, target: :proposal_answer, field_values: @template.field_values, templatable: @template.templatable ) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems