Преглед на файлове

Increment project files downloads.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2209 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.9.0
Jean-Philippe Lang преди 15 години
родител
ревизия
6eee9dbf88
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      app/controllers/attachments_controller.rb

+ 3
- 1
app/controllers/attachments_controller.rb Целия файл

@@ -35,7 +35,9 @@ class AttachmentsController < ApplicationController
end
def download
@attachment.increment_download if @attachment.container.is_a?(Version)
if @attachment.container.is_a?(Version) || @attachment.container.is_a?(Project)
@attachment.increment_download
end
# images are sent inline
send_file @attachment.diskfile, :filename => filename_for_content_disposition(@attachment.filename),

Loading…
Отказ
Запис