We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e58fdc commit 10cf766Copy full SHA for 10cf766
lib/react/rails/railtie.rb
@@ -31,12 +31,12 @@ class Railtie < ::Rails::Railtie
31
app.assets.prepend_path tmp_path
32
33
# Allow overriding react files that are not based on environment
34
- # e.g. /vendor/react/JSXTransformer.js
+ # e.g. /vendor/assets/react/JSXTransformer.js
35
dropin_path = app.root.join("vendor/assets/react")
36
app.assets.prepend_path dropin_path if dropin_path.exist?
37
38
# Allow overriding react files that are based on environment
39
- # e.g. /vendor/react/react.js
+ # e.g. /vendor/assets/react/react.js
40
dropin_path_env = app.root.join("vendor/assets/react/#{variant}")
41
app.assets.prepend_path dropin_path_env if dropin_path_env.exist?
42
end
0 commit comments