Class: Decidim::Consultations::Admin::QuestionConfigurationForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-consultations/app/forms/decidim/consultations/admin/question_configuration_form.rb

Overview

A form object used to create questions for a consultation from the admin dashboard.

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#min_lower_than_maxObject


19
20
21
22
23
# File 'decidim-consultations/app/forms/decidim/consultations/admin/question_configuration_form.rb', line 19

def min_lower_than_max
  return if min_votes.to_i <= max_votes.to_i

  errors.add(:max_votes, :lower_than_min)
end