aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-12-03 15:16:53 +0000
committerLouise Crow <louise.crow@gmail.com>2013-12-03 15:16:53 +0000
commit0bb7893e3691da1afbfb0954872b42ce030f5de6 (patch)
tree852d627aac1f357dcd8f74e81ccc03b1f86c1c7a
parent9e6810d0b86097e616192cf98554fc8ec664392a (diff)
Slightly nicer and more robust path reference.
-rw-r--r--app/views/request/_bubble.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/request/_bubble.html.erb b/app/views/request/_bubble.html.erb
index 8827d114d..e038bb3dc 100644
--- a/app/views/request/_bubble.html.erb
+++ b/app/views/request/_bubble.html.erb
@@ -13,7 +13,7 @@
:file_name => a.display_filename + '.html')
%>
<% img_filename = "icon_" + a.content_type.sub('/', '_') + "_large.png"
- full_filename = File.expand_path(File.join(File.dirname(__FILE__), "../../assets/images", img_filename))
+ full_filename = File.expand_path(Rails.root.join('app', 'assets', 'images', img_filename))
if File.exist?(full_filename) %>
<%= link_to image_tag(img_filename, :class => "attachment_image", :alt => "Attachment"), attachment_path %>
<% else %>