]> git.openstreetmap.org Git - rails.git/blob - config/initializers/new_framework_defaults_8_0.rb
Merge remote-tracking branch 'upstream/pull/5860'
[rails.git] / config / initializers / new_framework_defaults_8_0.rb
1 # Be sure to restart your server when you modify this file.
2 #
3 # This file eases your Rails 8.0 framework defaults upgrade.
4 #
5 # Uncomment each configuration one by one to switch to the new default.
6 # Once your application is ready to run with all new defaults, you can remove
7 # this file and set the `config.load_defaults` to `8.0`.
8 #
9 # Read the Guide for Upgrading Ruby on Rails for more info on each option.
10 # https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
11
12 ###
13 # Specifies whether `to_time` methods preserve the UTC offset of their receivers or preserves the timezone.
14 # If set to `:zone`, `to_time` methods will use the timezone of their receivers.
15 # If set to `:offset`, `to_time` methods will use the UTC offset.
16 # If `false`, `to_time` methods will convert to the local system UTC offset instead.
17 #++
18 # Rails.application.config.active_support.to_time_preserves_timezone = :zone
19
20 ###
21 # When both `If-Modified-Since` and `If-None-Match` are provided by the client
22 # only consider `If-None-Match` as specified by RFC 7232 Section 6.
23 # If set to `false` both conditions need to be satisfied.
24 #++
25 # Rails.application.config.action_dispatch.strict_freshness = true
26
27 ###
28 # Set `Regexp.timeout` to `1`s by default to improve security over Regexp Denial-of-Service attacks.
29 #++
30 # Regexp.timeout = 1