app/forms/decidim/meetings/answer_choice_form.rb



# frozen_string_literal: true

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

      validates :answer_option_id, presence: true
    end
  end
end