Skip to content

Commit 4447db7

Browse files
committed
Revert "Replace on_load with instance_eval"
This reverts commit 04dfaf7. reason: Killing the lazy-load hook obviously causes performance regressions in some cases
1 parent 6a03c31 commit 4447db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def configure(&block)
7575
app.assets.append_path path
7676
end
7777

78-
ActionView::Base.instance_eval do
78+
ActiveSupport.on_load(:action_view) do
7979
include Sprockets::Rails::Helper
8080

8181
# Copy relevant config to AV context

0 commit comments

Comments
 (0)