@@ -31,8 +31,8 class FilesController < ApplicationController | |||
|
31 | 31 | 'size' => "#{Attachment.table_name}.filesize", |
|
32 | 32 | 'downloads' => "#{Attachment.table_name}.downloads" |
|
33 | 33 | |
|
34 | @containers = [ Project.find(@project.id, :include => :attachments, :order => sort_clause)] | |
|
35 |
@containers += @project.versions. |
|
|
34 | @containers = [ Project.includes(:attachments).reorder(sort_clause).find(@project.id)] | |
|
35 | @containers += @project.versions.includes(:attachments).reorder(sort_clause).all.sort.reverse | |
|
36 | 36 | render :layout => !request.xhr? |
|
37 | 37 | end |
|
38 | 38 |
General Comments 0
You need to be logged in to leave comments.
Login now