aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" %>