Skip to content

Commit 04dfaf7

Browse files
committed
Replace on_load with instance_eval
Addresses rails/rails#9461
1 parent 4888a36 commit 04dfaf7

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
@@ -81,7 +81,7 @@ def configure(&block)
8181
app.assets.append_path path
8282
end
8383

84-
ActiveSupport.on_load(:action_view) do
84+
ActionView::Base.instance_eval do
8585
include Sprockets::Rails::Helper
8686

8787
# Copy relevant config to AV context

0 commit comments

Comments
 (0)