Skip to content
Browse files

Give assets access to asset_path during precompilation

  • Loading branch information...
1 parent 626bcc9 commit 1e56c8955937f3a06b2bef3a6d132ea8faaf434c @dhh dhh committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 railties/lib/rails/tasks/assets.rake
View
3 railties/lib/rails/tasks/assets.rake
@@ -1,6 +1,9 @@
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
+
assets = Rails.application.config.assets.precompile
Rails.application.assets.precompile(*assets)
end

0 comments on commit 1e56c89

Please sign in to comment.
Something went wrong with that request. Please try again.