Browse files

Renaming helper in the Rake task, but why is this needed in the first…

… place? (paging JP)
  • Loading branch information...
1 parent 289f9ce commit 9701014b960e8679af8652c5cd0b413a0ad04f58 @wycats wycats committed May 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/tasks/assets.rake
2 railties/lib/rails/tasks/assets.rake
@@ -2,7 +2,7 @@ namespace :assets do
desc "Compile all the assets named in config.assets.precompile"
task :precompile => :environment do
# Give assets access to asset_path
- ActionView::Helpers::SprocketsHelper
+ Sprockets::Helpers::RailsHelper

@wycats, Where is this defined? I get uninitialized constant Sprockets::Helpers when trying to run the rake task...

PS not sure why this line is needed. Commenting it out does what is expected...

Update: Nope, it is needed. Without it you do not get hashed asset paths in the css img tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
assets = Rails.application.config.assets.precompile

0 comments on commit 9701014

Please sign in to comment.