adds preloading

This commit is contained in:
Juanjo Bazán
2016-12-06 13:49:51 +01:00
parent 0d9fb9e8a8
commit ef77dd039b

View File

@@ -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