Commit 128de8a0 authored by azul's avatar azul

fix: issues noticed on staging server

Associations do not accept the reload flag anymore.
So in surveys controller
`@survey.responses(true)`
would become
`@survey.responses.reload`

But since we are not allowing updates to surveys anymore there is no need to reload anyway.

RankingPoll was missing a require for `borda_vote`.
parent c2e3cc87
require 'borda_vote'
class Poll::RankingPoll < Poll
has_many :votes,
foreign_key: :votable_id,
......
......@@ -3,8 +3,7 @@ class SurveyPageController < Page::BaseController
def show
authorize @page
@survey.responses(true)
# ^^ there is no good reason why this is necessary, but it seems to be the case.
@survey.responses
end
protected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment