diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-06-01 14:53:37 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-01 20:53:37 +0200 |
commit | 2212dc4aaa6de729d2fe3e39b134b566935b11b7 (patch) | |
tree | ec204dc8ee97926545f36cfd5cd58115d1b5198a /config/environments/development.rb | |
parent | e1fdac3e9a173c05c7fd9f5e8bcc255ef4a1e804 (diff) |
Update Rails to version 5.1.1 (#3121)
* Update rails to version 5.1.1 * Run `rails app:update` * Remove the override of polymorphic activity relationship * Silence warning about otp_secret attribute being unknown to rails * We will only introduce form_with where we want to use remote data
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 86f29e3f4..c81cf7bbe 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,8 +16,9 @@ Rails.application.configure do if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true + 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 @@ -32,6 +33,7 @@ Rails.application.configure do # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false + config.action_mailer.perform_caching = false # Print deprecation notices to the Rails logger. |