adds for_render to preload tags
This commit is contained in:
@@ -14,7 +14,7 @@ class Management::ProposalsController < Management::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def print
|
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)
|
set_proposal_votes(@proposal)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user