Skip to content

Commit 10cf766

Browse files
committed
Fixed react.js-replacing paths in comments
1 parent 8e58fdc commit 10cf766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/react/rails/railtie.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class Railtie < ::Rails::Railtie
3131
app.assets.prepend_path tmp_path
3232

3333
# Allow overriding react files that are not based on environment
34-
# e.g. /vendor/react/JSXTransformer.js
34+
# e.g. /vendor/assets/react/JSXTransformer.js
3535
dropin_path = app.root.join("vendor/assets/react")
3636
app.assets.prepend_path dropin_path if dropin_path.exist?
3737

3838
# Allow overriding react files that are based on environment
39-
# e.g. /vendor/react/react.js
39+
# e.g. /vendor/assets/react/react.js
4040
dropin_path_env = app.root.join("vendor/assets/react/#{variant}")
4141
app.assets.prepend_path dropin_path_env if dropin_path_env.exist?
4242
end

0 commit comments

Comments
 (0)