Initial upgrade to Rails 5.1

This commit is contained in:
Matt Rogers 2018-11-11 11:40:22 -06:00
parent d24b9d9aa1
commit 1ccf96ae83
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
13 changed files with 118 additions and 60 deletions

View file

@ -18,7 +18,7 @@ Rails.application.configure do
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=172800'
'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
}
else
config.action_controller.perform_caching = false
@ -49,4 +49,8 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
end