Permalink
Browse files

Replace on_load with instance_eval

  • Loading branch information...
1 parent 4888a36 commit 04dfaf74eecca0745efa3e45636d76524380d6f6 @rubys rubys committed Apr 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sprockets/railtie.rb
View
@@ -81,7 +81,7 @@ def configure(&block)
app.assets.append_path path
end
- ActiveSupport.on_load(:action_view) do
+ ActionView::Base.instance_eval do
include Sprockets::Rails::Helper
# Copy relevant config to AV context

0 comments on commit 04dfaf7

Please sign in to comment.