Skip to content

Commit dd6f3e1

Browse files
author
dhh
committed
Style
1 parent e2c522b commit dd6f3e1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ Rails.application.configure do
2626

2727
<%- end -%>
2828
config.cache_store = :memory_store
29-
config.public_file_server.headers = {
30-
"Cache-Control" => "public, max-age=#{2.days.to_i}"
31-
}
29+
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
3230
else
3331
config.action_controller.perform_caching = false
3432

railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ Rails.application.configure do
1818
config.eager_load = ENV["CI"].present?
1919

2020
# Configure public file server for tests with Cache-Control for performance.
21-
config.public_file_server.headers = {
22-
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
23-
}
21+
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }
2422

2523
# Show full error reports and disable caching.
2624
config.consider_all_requests_local = true

0 commit comments

Comments
 (0)