提交 56b301fa 编写于 作者: J Joshua Peek

Fix appending sprockets paths

上级 411435a7
......@@ -54,7 +54,12 @@ def asset_environment(app)
env = Sprockets::Environment.new(app.root.to_s)
env.static_root = File.join(app.root.join("public"), assets.prefix)
env.paths.concat assets.paths
if env.respond_to?(:append_path)
assets.paths.each { |path| env.append_path(path) }
else
env.paths.concat assets.paths
end
env.logger = Rails.logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册