Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always enable digest and compile in the Rake task #2768

Merged
merged 1 commit into from
Aug 31, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions actionpack/lib/sprockets/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ namespace :assets do
# Ensure that action view is loaded and the appropriate sprockets hooks get executed
ActionView::Base

# Always perform caching so that asset_path appends the timestamps to file references.
Rails.application.config.action_controller.perform_caching = true
# Always calculate digests and compile files
Rails.application.config.assets.digest = true
Rails.application.config.assets.compile = true

config = Rails.application.config
env = Rails.application.assets
Expand Down