Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 3204cef

Browse files
committed
Uses Sprockets manifest path for rjs_manifest.yml
1 parent a185040 commit 3204cef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/requirejs/rails/engine.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class Engine < ::Rails::Engine
2727
config = app.config
2828
config.assets.precompile += config.requirejs.precompile
2929

30-
manifest_path = File.join(::Rails.public_path, config.assets.prefix, "rjs_manifest.yml")
30+
manifest_directory = config.assets.manifest || File.join(::Rails.public_path, config.assets.prefix)
31+
manifest_path = File.join(manifest_directory, "rjs_manifest.yml")
3132
config.requirejs.manifest_path = Pathname.new(manifest_path)
3233
end
3334

0 commit comments

Comments
 (0)