diff --git a/app/models/poll/question.rb b/app/models/poll/question.rb index 16786a9b6..5930ee9d8 100644 --- a/app/models/poll/question.rb +++ b/app/models/poll/question.rb @@ -14,7 +14,6 @@ class Poll::Question < ActiveRecord::Base belongs_to :proposal validates :title, presence: true - validates :summary, presence: true validates :author, presence: true validates :title, length: { in: 4..Poll::Question.title_max_length } @@ -35,8 +34,7 @@ class Poll::Question < ActiveRecord::Base def searchable_values { title => 'A', proposal.try(:title) => 'A', - summary => 'B', - description => 'C', + description => 'B', author.username => 'C', author_visible_name => 'C' } end @@ -56,7 +54,6 @@ class Poll::Question < ActiveRecord::Base self.proposal_id = proposal.id self.title = proposal.title self.description = proposal.description - self.summary = proposal.summary self.valid_answers = I18n.t('poll_questions.default_valid_answers') end end