Skip to content

Commit 78587a5

Browse files
committed
Fix appending sprockets paths
1 parent 34d16e1 commit 78587a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

actionpack/lib/sprockets/railtie.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ def asset_environment(app)
5454
env = Sprockets::Environment.new(app.root.to_s)
5555

5656
env.static_root = File.join(app.root.join("public"), assets.prefix)
57-
env.paths.concat assets.paths
57+
58+
if env.respond_to?(:append_path)
59+
assets.paths.each { |path| env.append_path(path) }
60+
else
61+
env.paths.concat assets.paths
62+
end
5863

5964
env.logger = Rails.logger
6065

0 commit comments

Comments
 (0)