Skip to content

Commit 1608217

Browse files
Merge pull request #44 from rubys/rails_issue_9461
Replace on_load with instance_eval
2 parents 4888a36 + 04dfaf7 commit 1608217

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)