Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Give assets access to asset_path during precompilation

  • Loading branch information...
commit 1e56c8955937f3a06b2bef3a6d132ea8faaf434c 1 parent 626bcc9
@dhh dhh authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.