Fix queries and scopes after column deletion

Some queries were accessing original column instead of the new
translatable one. This should have been causing unexpected behavior
for requests maded in a different locale than the application default.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-17 20:11:11 +01:00
committed by Julian Herrero
parent f87804aa90
commit 7c5fa253f5

View File

@@ -11,9 +11,7 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
end end
def show def show
@poll = Poll.includes(:questions). @poll = Poll.find(params[:id])
order("poll_questions.title").
find(params[:id])
end end
def new def new