Sha256: a38bde7fe1a25ccf4c15388332c8b232179c8c7007f2baac9492ee91a77fbba3

Contents?: true

Size: 388 Bytes

Versions: 12

Compression:

Stored size: 388 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

      validates :answer_option_id, presence: true
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-forms-0.21.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.20.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.20.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.19.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.18.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.19.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.17.2 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.18.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.17.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.16.1 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.17.0 app/forms/decidim/forms/answer_choice_form.rb
decidim-forms-0.16.0 app/forms/decidim/forms/answer_choice_form.rb