Mercurial > hg > soundsoftware-site
diff app/controllers/files_controller.rb @ 511:107d36338b70 live
Merge from branch "cannam"
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:43:07 +0100 |
parents | 350acce374a2 |
children | 251b380117ce bb32da3bea34 |
line wrap: on
line diff
--- a/app/controllers/files_controller.rb Thu Jun 09 16:51:06 2011 +0100 +++ b/app/controllers/files_controller.rb Thu Jul 14 10:43:07 2011 +0100 @@ -14,7 +14,7 @@ 'created_on' => "#{Attachment.table_name}.created_on", 'size' => "#{Attachment.table_name}.filesize", 'downloads' => "#{Attachment.table_name}.downloads" - + @containers = [ Project.find(@project.id, :include => :attachments, :order => sort_clause)] @containers += @project.versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse render :layout => !request.xhr?