Skip to content

Commit

Permalink
Download counter advances correctly now.
Browse files Browse the repository at this point in the history
  • Loading branch information
bamnet committed Feb 5, 2010
1 parent 2d39367 commit 77e48a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/controllers/revisions_controller.rb
Expand Up @@ -116,8 +116,9 @@ def download
end

if revision.document.allowed_to_read
revision.document.increment!(:downloaded)

revision.document.bypass_auth do
revision.document.increment!(:downloaded)
end
send_data revision.upload.file_contents(:original),
:filename => revision.upload_file_name,
:type => revision.upload_content_type
Expand Down
2 changes: 1 addition & 1 deletion vendor/plugins/authenticates_access
Submodule authenticates_access updated 3 files
+1 −1 VERSION
+19 −10 lib/authenticates_access.rb
+4 −4 mikldt-authenticates_access.gemspec

0 comments on commit 77e48a3

Please sign in to comment.