Sha256: 600dc6ee979511f3e0c47deb9123cdc3fca879922b3ef571e881e5959f28b6a9
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Decidim module Posts class QuestionForm < Decidim::Form include Decidim::TranslatableAttributes mimic :question attribute :title, Decidim::Attributes::CleanString attribute :answers, Array[AnswerForm] attribute :deleted, Boolean, default: false attribute :question_type, String validates :title, presence: true def map_model(model) self.title = translated_attribute(model.title) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-posts-1.0.0 | app/forms/decidim/posts/question_form.rb |