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-19 17:31:37 +0000
commit5db2c779feef1252c61e761e47a0a4029d0538c1 (patch)
tree9ed5dd0924160b8ec0a3ad9fb5fea6277a122a4a
parent1ea2aef295d9ec5be7041e42feb412561f5f730b (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" %>