lib/pakyow/assets/behavior/rendering/install_assets.rb in pakyow-assets-1.0.0.rc3 vs lib/pakyow/assets/behavior/rendering/install_assets.rb in pakyow-assets-1.0.0.rc4
- old
+ new
@@ -20,14 +20,14 @@
packs.uniq { |pack|
pack.public_path
}.each do |pack|
if pack.javascripts?
- head.object.append_html("<script src=\"#{pack.public_path}.js\"></script>\n")
+ head.object.append_html("<script src=\"#{File.join(app.config.assets.host, pack.public_path)}.js\"></script>\n")
end
if pack.stylesheets?
- head.object.append_html("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"#{pack.public_path}.css\">\n")
+ head.object.append_html("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"#{File.join(app.config.assets.host, pack.public_path)}.css\">\n")
end
end
end
end
end