aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-10-02 16:25:28 +0100
committerMark Longair <mhl@pobox.com>2013-11-08 16:25:16 +0000
commitf57231c8f6135394e11136d2c691a9dea17fc0c6 (patch)
tree3d4b2a7afc943f3220c941a238a7a8b2a9993a60
parent3dd92d72d04748bcf4547d4d403a6f64889eea30 (diff)
Fix the inclusion of CSS in output for zip file download
-rw-r--r--app/views/general/_stylesheet_includes.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/general/_stylesheet_includes.html.erb b/app/views/general/_stylesheet_includes.html.erb
index 4a8db2459..8f375d777 100644
--- a/app/views/general/_stylesheet_includes.html.erb
+++ b/app/views/general/_stylesheet_includes.html.erb
@@ -1,7 +1,7 @@
<%- if @render_to_file %>
<style>
- <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'main.css')) %>
- <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'print.css')) %>
+ <%= Rails.application.assets["main.css"].to_s %>
+ <%= Rails.application.assets["print.css"].to_s %>
</style>
<%- else %>
<%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>