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:
committed by
Julian Herrero
parent
f87804aa90
commit
7c5fa253f5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user