|
|
|
@ -9,7 +9,13 @@ Dummy::Application.configure do
|
|
|
|
|
config.eager_load = false |
|
|
|
|
|
|
|
|
|
# Configure static asset server for tests with Cache-Control for performance |
|
|
|
|
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2 || |
|
|
|
|
Rails::VERSION::MAJOR >= 5 |
|
|
|
|
config.serve_static_files = true |
|
|
|
|
else |
|
|
|
|
config.serve_static_assets = true |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
config.static_cache_control = "public, max-age=3600" |
|
|
|
|
|
|
|
|
|
# Show full error reports and disable caching |
|
|
|
|