OSDN Git Service

use attachment secure_url for Attachemnt page
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 17 Feb 2013 14:18:42 +0000 (16:18 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 17 Feb 2013 14:18:42 +0000 (16:18 +0200)
app/views/projects/files.html.haml

index d108308..36948ef 100644 (file)
@@ -9,7 +9,7 @@
     - @notes.each do |note|
       %tr
         %td
-          %a{href: note.attachment.url}
+          = link_to note.attachment.secure_url, target: "_blank" do
             = image_tag gravatar_icon(note.author_email), class: "avatar s24"
             = note.attachment_identifier
         %td