@@ -775,8 +775,7 module ApplicationHelper | |||
|
775 | 775 | when 'attachment' |
|
776 | 776 | attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil) |
|
777 | 777 | if attachments && attachment = attachments.detect {|a| a.filename == name } |
|
778 |
link = link_to |
|
|
779 | :class => 'attachment' | |
|
778 | link = link_to_attachment(attachment, :only_path => only_path, :download => true, :class => 'attachment') | |
|
780 | 779 | end |
|
781 | 780 | when 'project' |
|
782 | 781 | if p = Project.visible.where("identifier = :s OR LOWER(name) = :s", :s => name.downcase).first |
General Comments 0
You need to be logged in to leave comments.
Login now