Sha256: f0a99521fcca5892256871433635279bfeb31435306a5cd4f3063f8cb1f6b061

Contents?: true

Size: 428 Bytes

Versions: 59

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Forms
    # This class holds a Form to save the chosen option for an answer
    class AnswerChoiceForm < Decidim::Form
      attribute :body, String
      attribute :custom_body, String
      attribute :position, Integer
      attribute :answer_option_id, Integer
      attribute :matrix_row_id, Integer

      validates :answer_option_id, presence: true
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
decidim-forms-0.29.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.4 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.27.9 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.29.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.3 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.27.8 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.29.0.rc4 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.29.0.rc3 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.29.0.rc2 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.29.0.rc1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.2 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.27.7 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.27.6 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.26.10 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.26.9 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.27.5 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.0.rc5 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.28.0.rc4 app/forms/decidim/forms/answer_choice_form.rb