adds preloading
This commit is contained in:
@@ -5,6 +5,7 @@ class Admin::Poll::PollsController < Admin::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@poll = Poll.includes(:questions, :booths, :officers).find(params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|||||||
Reference in New Issue
Block a user