20300: Rail 7.0 app:update.
[arvados.git] / services / api / config / initializers / new_framework_defaults_7_0.rb
1 # Be sure to restart your server when you modify this file.
2 #
3 # This file eases your Rails 7.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 `7.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 # `button_to` view helper will render `<button>` element, regardless of whether
13 # or not the content is passed as the first argument or as a block.
14 # Rails.application.config.action_view.button_to_generates_button_tag = true
15
16 # `stylesheet_link_tag` view helper will not render the media attribute by default.
17 # Rails.application.config.action_view.apply_stylesheet_media_default = false
18
19 # Change the digest class for the key generators to `OpenSSL::Digest::SHA256`.
20 # Changing this default means invalidate all encrypted messages generated by
21 # your application and, all the encrypted cookies. Only change this after you
22 # rotated all the messages using the key rotator.
23 #
24 # See upgrading guide for more information on how to build a rotator.
25 # https://guides.rubyonrails.org/v7.0/upgrading_ruby_on_rails.html
26 # Rails.application.config.active_support.key_generator_hash_digest_class = OpenSSL::Digest::SHA256
27
28 # Change the digest class for ActiveSupport::Digest.
29 # Changing this default means that for example Etags change and
30 # various cache keys leading to cache invalidation.
31 # Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256
32
33 # Don't override ActiveSupport::TimeWithZone.name and use the default Ruby
34 # implementation.
35 # Rails.application.config.active_support.remove_deprecated_time_with_zone_name = true
36
37 # Calls `Rails.application.executor.wrap` around test cases.
38 # This makes test cases behave closer to an actual request or job.
39 # Several features that are normally disabled in test, such as Active Record query cache
40 # and asynchronous queries will then be enabled.
41 # Rails.application.config.active_support.executor_around_test_case = true
42
43 # Set both the `:open_timeout` and `:read_timeout` values for `:smtp` delivery method.
44 # Rails.application.config.action_mailer.smtp_timeout = 5
45
46 # The ActiveStorage video previewer will now use scene change detection to generate
47 # better preview images (rather than the previous default of using the first frame
48 # of the video).
49 # Rails.application.config.active_storage.video_preview_arguments =
50 #   "-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
51
52 # Automatically infer `inverse_of` for associations with a scope.
53 # Rails.application.config.active_record.automatic_scope_inversing = true
54
55 # Raise when running tests if fixtures contained foreign key violations
56 # Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true
57
58 # Disable partial inserts.
59 # This default means that all columns will be referenced in INSERT queries
60 # regardless of whether they have a default or not.
61 # Rails.application.config.active_record.partial_inserts = false
62
63 # Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`.
64 # Rails.application.config.action_controller.raise_on_open_redirects = true
65
66 # Change the variant processor for Active Storage.
67 # Changing this default means updating all places in your code that
68 # generate variants to use image processing macros and ruby-vips
69 # operations. See the upgrading guide for detail on the changes required.
70 # The `:mini_magick` option is not deprecated; it's fine to keep using it.
71 # Rails.application.config.active_storage.variant_processor = :vips
72
73 # Enable parameter wrapping for JSON.
74 # Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.
75 # To disable parameter wrapping entirely, set this config to `false`.
76 # Rails.application.config.action_controller.wrap_parameters_by_default = true
77
78 # Specifies whether generated namespaced UUIDs follow the RFC 4122 standard for namespace IDs provided as a
79 # `String` to `Digest::UUID.uuid_v3` or `Digest::UUID.uuid_v5` method calls.
80 #
81 # See https://guides.rubyonrails.org/configuring.html#config-active-support-use-rfc4122-namespaced-uuids for
82 # more information.
83 # Rails.application.config.active_support.use_rfc4122_namespaced_uuids = true
84
85 # Change the default headers to disable browsers' flawed legacy XSS protection.
86 # Rails.application.config.action_dispatch.default_headers = {
87 #   "X-Frame-Options" => "SAMEORIGIN",
88 #   "X-XSS-Protection" => "0",
89 #   "X-Content-Type-Options" => "nosniff",
90 #   "X-Download-Options" => "noopen",
91 #   "X-Permitted-Cross-Domain-Policies" => "none",
92 #   "Referrer-Policy" => "strict-origin-when-cross-origin"
93 # }
94
95
96 # ** Please read carefully, this must be configured in config/application.rb **
97 # Change the format of the cache entry.
98 # Changing this default means that all new cache entries added to the cache
99 # will have a different format that is not supported by Rails 6.1 applications.
100 # Only change this value after your application is fully deployed to Rails 7.0
101 # and you have no plans to rollback.
102 # When you're ready to change format, add this to `config/application.rb` (NOT this file):
103 #  config.active_support.cache_format_version = 7.0
104
105
106 # Cookie serializer: 2 options
107 #
108 # If you're upgrading and haven't set `cookies_serializer` previously, your cookie serializer
109 # is `:marshal`. The default for new apps is `:json`.
110 #
111 # Rails.application.config.action_dispatch.cookies_serializer = :json
112 #
113 #
114 # To migrate an existing application to the `:json` serializer, use the `:hybrid` option.
115 #
116 # Rails transparently deserializes existing (Marshal-serialized) cookies on read and
117 # re-writes them in the JSON format.
118 #
119 # It is fine to use `:hybrid` long term; you should do that until you're confident *all* your cookies
120 # have been converted to JSON. To keep using `:hybrid` long term, move this config to its own
121 # initializer or to `config/application.rb`.
122 #
123 # Rails.application.config.action_dispatch.cookies_serializer = :hybrid
124 #
125 #
126 # If your cookies can't yet be serialized to JSON, keep using `:marshal` for backward-compatibility.
127 #
128 # If you have configured the serializer elsewhere, you can remove this section of the file.
129 #
130 # See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information.
131
132 # Change the return value of `ActionDispatch::Request#content_type` to the Content-Type header without modification.
133 # Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type = false
134
135 # Active Storage `has_many_attached` relationships will default to replacing the current collection instead of appending to it.
136 # Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`.
137 # See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information.
138 # Rails.application.config.active_storage.multiple_file_field_include_hidden = true
139
140 # ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
141 # Disables the deprecated #to_s override in some Ruby core classes
142 # See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information.
143 # config.active_support.disable_to_s_conversion = true