Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rake assets:precompile should always perform caching - Closes #2199

  • Loading branch information...
commit bb3b3e306252129f24e69eede9793cfc131c766e 1 parent 410e754
@dmathieu dmathieu authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  actionpack/lib/sprockets/assets.rake
View
1  actionpack/lib/sprockets/assets.rake
@@ -10,6 +10,7 @@ namespace :assets do
Sprockets::Helpers::RailsHelper
assets = Rails.application.config.assets.precompile
+ Rails.application.config.action_controller.perform_caching = true
Rails.application.assets.precompile(*assets)
end

1 comment on commit bb3b3e3

@fxn
Owner

This was not here before, and was added after some discussion. I think the next guy reading the code would thank a comment explaining why it is done.

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