Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… place? (paging JP)
  • Loading branch information...
commit 9701014b960e8679af8652c5cd0b413a0ad04f58 1 parent 289f9ce
@wycats wycats authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/tasks/assets.rake
View
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
Rails.application.assets.precompile(*assets)
Please sign in to comment.
Something went wrong with that request. Please try again.