diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-09-26 09:56:38 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-09-26 13:57:07 -0300 |
commit | cf90181d8409909803a8325f33e04b5dbdcd6ada (patch) | |
tree | f894d28d048de84b19f244b820f82d04e0eb8501 /actionpack/lib/sprockets | |
parent | 17882d2a9e8e93a5f6dbe2278deb73269fff30c9 (diff) | |
download | rails-cf90181d8409909803a8325f33e04b5dbdcd6ada.tar.gz rails-cf90181d8409909803a8325f33e04b5dbdcd6ada.tar.bz2 rails-cf90181d8409909803a8325f33e04b5dbdcd6ada.zip |
Merge pull request #3136 from guilleiguaran/clear-digests-on-precompile
Avoid use of existing precompiled assets during rake assets:precompile run
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 1e72d29ca2..e29661e4e7 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -25,6 +25,10 @@ namespace :assets do env = Rails.application.assets + # Always compile files and avoid use of existing precompiled assets + config.assets.compile = true + config.assets.digests = {} + target = File.join(Rails.public_path, config.assets.prefix) static_compiler = Sprockets::StaticCompiler.new(env, target, :digest => config.assets.digest) |