File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Railtie < ::Rails::Railtie
28
28
end
29
29
end
30
30
31
- config . after_initialize do |app |
31
+ config . before_initialize do |app |
32
32
# We want to include different files in dev/prod. The development builds
33
33
# contain console logging for invariants and logging to help catch
34
34
# common mistakes. These are all stripped out in the production build.
@@ -38,7 +38,9 @@ class Railtie < ::Rails::Railtie
38
38
39
39
app . assets . append_path ( root_path . join ( 'lib/assets/react-source/' ) . join ( directory ) . to_s )
40
40
app . assets . append_path ( root_path . join ( 'lib/assets/javascripts/' ) . to_s )
41
+ end
41
42
43
+ config . after_initialize do |app |
42
44
# Server Rendering
43
45
# Concat component_filenames together for server rendering
44
46
app . config . react . components_js = lambda {
You can’t perform that action at this time.
0 commit comments