Sha256: 37014677a2bd2499c002aeeadac96fbef2edcc07f923a071e8217f33eb8a6c61

Contents?: true

Size: 354 Bytes

Versions: 44

Compression:

Stored size: 354 Bytes

Contents

# 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

Version data entries

44 entries across 44 versions & 1 rubygems

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