From 0a5ee3f8619da23036b81b9fd8ae6de2f31d5a79 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 18 Oct 2017 01:30:21 +0200 Subject: [PATCH] Remove valid_answers usage on Poll Question model --- app/models/poll/question.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/poll/question.rb b/app/models/poll/question.rb index 90e528bd0..066d223d9 100644 --- a/app/models/poll/question.rb +++ b/app/models/poll/question.rb @@ -39,17 +39,12 @@ class Poll::Question < ActiveRecord::Base author_visible_name => 'C' } end - def valid_answers - (super.try(:split, ',')&.compact || []).map(&:strip) - end - def copy_attributes_from_proposal(proposal) if proposal.present? self.author = proposal.author self.author_visible_name = proposal.author.name self.proposal_id = proposal.id self.title = proposal.title - self.valid_answers = I18n.t('poll_questions.default_valid_answers') end end