diff --git a/app/models/poll/question.rb b/app/models/poll/question.rb index 5930ee9d8..dd4eae3bc 100644 --- a/app/models/poll/question.rb +++ b/app/models/poll/question.rb @@ -16,7 +16,7 @@ class Poll::Question < ActiveRecord::Base validates :title, presence: true validates :author, presence: true - validates :title, length: { in: 4..Poll::Question.title_max_length } + validates :title, length: { minimum: 4 } validates :description, length: { maximum: Poll::Question.description_max_length } scope :by_poll_id, ->(poll_id) { where(poll_id: poll_id) }