Mercurial > hg > soundsoftware-site
diff app/controllers/files_controller.rb @ 254:0c9da2b87ad6 feature_80
Naively display download "active" status in downloads page, and allow sorting by it
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 03 Mar 2011 18:31:22 +0000 |
parents | 94944d00e43c |
children | 3ecf99348b9f |
line wrap: on
line diff
--- a/app/controllers/files_controller.rb Thu Mar 03 15:30:43 2011 +0000 +++ b/app/controllers/files_controller.rb Thu Mar 03 18:31:22 2011 +0000 @@ -10,6 +10,7 @@ def index sort_init 'filename', 'asc' sort_update 'filename' => "#{Attachment.table_name}.filename", + 'active' => "#{Attachment.table_name}.active", 'created_on' => "#{Attachment.table_name}.created_on", 'size' => "#{Attachment.table_name}.filesize", 'downloads' => "#{Attachment.table_name}.downloads"