Files
nairobi/app/models
Julian Herrero 629c75ceeb Avoid error for polls results
When a poll is created, and any of the questions for that poll doesn't
have any answer created, the following exception was raised when
trying to see the results:

Failure/Error: question_answers.max_by {|answer| answer.total_votes }.id

  ActionView::Template::Error:
    undefined method `id' for nil:NilClass
      ./app/models/poll/question.rb:66:in `most_voted_answer_id'
2019-10-31 13:48:42 +01:00
..
2019-10-30 18:48:55 +01:00
2019-10-30 02:26:42 +01:00
2019-10-31 13:48:42 +01:00
2015-07-15 13:32:13 +02:00
2019-10-30 02:26:42 +01:00
2019-03-27 15:22:14 +01:00
2019-10-23 14:39:31 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2019-10-30 02:26:42 +01:00
2019-02-05 17:41:00 +01:00
2019-10-25 19:29:12 +02:00
2019-09-10 21:43:38 +02:00
2019-10-30 18:48:55 +01:00
2017-12-15 19:21:02 +01:00