aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/sprockets/railtie.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb
index 2f7f95c44d..ccec65ba95 100644
--- a/actionpack/lib/sprockets/railtie.rb
+++ b/actionpack/lib/sprockets/railtie.rb
@@ -33,9 +33,10 @@ module Sprockets
app.assets = asset_environment(app)
- # FIXME: Temp hack for extending Sprockets::Context so
ActiveSupport.on_load(:action_view) do
- ::Sprockets::Context.send :include, ::ActionView::Helpers::SprocketsHelper
+ app.assets.context.instance_eval do
+ include ::ActionView::Helpers::SprocketsHelper
+ end
end
app.routes.append do
@@ -59,4 +60,4 @@ module Sprockets
env
end
end
-end \ No newline at end of file
+end