File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ nav_order: 6
1010
1111## main
1212
13+ * Fix initialization ordering issue causing missing asset errors in Sprockets.
14+
15+ * Cameron Dutro*
16+
1317## 4.4.0
1418
1519* Fix segfaults when Ruby coverage is enabled.
Original file line number Diff line number Diff line change @@ -50,11 +50,13 @@ class Engine < Rails::Engine # :nodoc:
5050 end
5151 end
5252
53- config . after_initialize do | app |
53+ config . after_routes_loaded do
5454 ActiveSupport . on_load ( :view_component ) do
5555 if defined? ( Sprockets ::Rails )
5656 include Sprockets ::Rails ::Helper
5757
58+ app = Rails . application
59+
5860 # Copy relevant config to VC context
5961 # See: https://github.com/rails/sprockets-rails/blob/266ec49f3c7c96018dd75f9dc4f9b62fe3f7eecf/lib/sprockets/railtie.rb#L245
6062 self . debug_assets = app . config . assets . debug
You can’t perform that action at this time.
0 commit comments