diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-19 20:06:09 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-19 20:06:09 +0200 |
commit | 1e56c8955937f3a06b2bef3a6d132ea8faaf434c (patch) | |
tree | 2321e8bf945c17ec03f5023b3dfbc329d764891f /railties/lib | |
parent | 626bcc9bf415ca9872bbdaceac30a4df9aca86bb (diff) | |
download | rails-1e56c8955937f3a06b2bef3a6d132ea8faaf434c.tar.gz rails-1e56c8955937f3a06b2bef3a6d132ea8faaf434c.tar.bz2 rails-1e56c8955937f3a06b2bef3a6d132ea8faaf434c.zip |
Give assets access to asset_path during precompilation
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake index 9ed697f142..158df31749 100644 --- a/railties/lib/rails/tasks/assets.rake +++ b/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 |