Permalink
Browse files

Generate correct asset paths when using asset pipeline

  • Loading branch information...
1 parent 80745f1 commit 9b55007486e96b9dae26f67b08d5d6ed72f747c9 @lardawge lardawge committed Jun 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/sprockets/railtie.rb
View
2 actionpack/lib/sprockets/railtie.rb
@@ -29,6 +29,8 @@ def self.using_coffee?
app.assets = asset_environment(app)
ActiveSupport.on_load(:action_view) do
+ include ::Sprockets::Helpers::RailsHelper
+
app.assets.context_class.instance_eval do
include ::Sprockets::Helpers::RailsHelper
end

0 comments on commit 9b55007

Please sign in to comment.