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
|
||||
|
||||
def show
|
||||
@poll = Poll.includes(:questions).
|
||||
order("poll_questions.title").
|
||||
find(params[:id])
|
||||
@poll = Poll.find(params[:id])
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in New Issue
Block a user