Sha256: f7ddd5c0d4b45c02b1936b0703e3f3d53cfa911c889b48f7b80bf76b5c5f712b
Contents?: true
Size: 477 Bytes
Versions: 13
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Decidim module Templates module Admin # Creates a QuestionnaireTemplate. class CreateQuestionnaireTemplate < CreateTemplate protected def assign_template! @questionnaire = Decidim::Forms::Questionnaire.create!(questionnaire_for: @template) @template.update!(templatable: @questionnaire) end def target :questionnaire end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems