adds for_render to preload tags

This commit is contained in:
Juanjo Bazán
2015-10-20 15:02:41 +02:00
parent 80f4471593
commit 0ff9429b52

View File

@@ -14,7 +14,7 @@ class Management::ProposalsController < Management::BaseController
end
def print
@proposals = Proposal.send("sort_by_#{@current_order}").limit(5)
@proposals = Proposal.send("sort_by_#{@current_order}").for_render.limit(5)
set_proposal_votes(@proposal)
end