Commit d3dad5e258108e27577b4c3c3efb7d32bfb289f0
1 parent
d5825795
change version, check pdf include css file
Showing
2 changed files
with
2 additions
and
3 deletions
| ... | ... | @@ -202,10 +202,9 @@ module Kanjai |
| 202 | 202 | |
| 203 | 203 | #if params[:format].to_s == 'pdf' |
| 204 | 204 | #css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}#{ActionController::Base.helpers.asset_path('kanjai/pdf.css')}" |
| 205 | - file = File.open("#{Rails.root}/pdf.css", "r") | |
| 205 | + file = File.open("#{Rails.root}/public/pdf.css", "r") | |
| 206 | 206 | contents = file.read |
| 207 | 207 | |
| 208 | - css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}/public/pdf.css" | |
| 209 | 208 | layer.gsub!(/<\/head>/, '<style>'+ contents +'</style></head>') |
| 210 | 209 | #layer.gsub!(/<meta charset/, '<link rel="stylesheet" href="'+ css_path +'"><meta charset') |
| 211 | 210 | #end | ... | ... |