Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix appending sprockets paths

  • Loading branch information...
commit 56b301fa7a9f4b1ab2b7b5daf9444555b85d3359 1 parent 411435a
@josh josh authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/lib/sprockets/railtie.rb
View
7 actionpack/lib/sprockets/railtie.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.