diff --git a/app/views/admin/blocks/_block.html.haml b/app/views/admin/blocks/_block.html.haml index fc0a661..171b664 100644 --- a/app/views/admin/blocks/_block.html.haml +++ b/app/views/admin/blocks/_block.html.haml @@ -3,6 +3,6 @@ #block_portlet.block_portlets{:id => block.id, :"data-block_id"=>block.id, :class => ("block_portlets_sortable" if sortable).to_s} - =render :partial => "portlet/portlets/portlet", :collection => block.portlets.find(:all, :order => :position, :include => :content) + =render :partial => "portlet/portlets/portlet", :collection => block.portlets.order(:position).includes(:content).all