Class: Decidim::Consultations::Admin::QuestionConfigurationForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Consultations::Admin::QuestionConfigurationForm
- Includes:
- TranslatableAttributes
- Defined in:
- 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
Instance Method Details
#min_lower_than_max ⇒ Object
19 20 21 22 23 |
# File '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 |