@@ -56,6 +56,86 @@ NOTE: If you need to apply configuration directly to a class, use a [lazy load h
56
56
57
57
[ `config.load_defaults` ] : https://api.rubyonrails.org/classes/Rails/Application/Configuration.html#method-i-load_defaults
58
58
59
+ Below are the default values associated with each target version. In cases of conflicting values, newer versions take precedence over older versions.
60
+
61
+ #### Default Values for Target Version 7.1
62
+
63
+ - [ ` config.action_dispatch.default_headers ` ] ( #config-action-dispatch-default-headers ) : ` { "X-Frame-Options" => "SAMEORIGIN", "X-XSS-Protection" => "0", "X-Content-Type-Options" => "nosniff", "X-Permitted-Cross-Domain-Policies" => "none", "Referrer-Policy" => "strict-origin-when-cross-origin" } `
64
+
65
+ #### Default Values for Target Version 7.0
66
+
67
+ - [ ` config.action_controller.raise_on_open_redirects ` ] ( #config-action-controller-raise-on-open-redirects ) : ` true `
68
+ - [ ` config.action_view.button_to_generates_button_tag ` ] ( #config-action-view-button-to-generates-button-tag ) : ` true `
69
+ - [ ` config.action_view.apply_stylesheet_media_default ` ] ( #config-action-view-apply-stylesheet-media-default ) : ` false `
70
+ - [ ` config.active_support.key_generator_hash_digest_class ` ] ( #config-active-support-key-generator-hash-digest-class ) : ` OpenSSL::Digest::SHA256 `
71
+ - [ ` config.active_support.hash_digest_class ` ] ( #config-active-support-hash-digest-class ) : ` OpenSSL::Digest::SHA256 `
72
+ - [ ` config.active_support.cache_format_version ` ] ( #config-active-support-cache-format-version ) : ` 7.0 `
73
+ - [ ` config.active_support.remove_deprecated_time_with_zone_name ` ] ( #config-active-support-remove-deprecated-time-with-zone-name ) : ` true `
74
+ - [ ` config.active_support.executor_around_test_case ` ] ( #config-active-support-executor-around-test-case ) : ` true `
75
+ - [ ` config.active_support.use_rfc4122_namespaced_uuids ` ] ( #config-active-support-use-rfc4122-namespaced-uuids ) : ` true `
76
+ - [ ` config.active_support.disable_to_s_conversion ` ] ( #config-active-support-disable-to-s-conversion ) : ` true `
77
+ - [ ` config.action_dispatch.return_only_request_media_type_on_content_type ` ] ( #config-action-dispatch-return-only-request-media-type-on-content-type ) : ` false `
78
+ - [ ` config.action_dispatch.cookies_serializer ` ] ( #config-action-dispatch-cookies-serializer ) : ` :json `
79
+ - [ ` config.action_mailer.smtp_timeout ` ] ( #config-action-mailer-smtp-timeout ) : ` 5 `
80
+ - [ ` config.active_storage.video_preview_arguments ` ] ( #config-active-storage-video-preview-arguments ) : ` "-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" `
81
+ - [ ` config.active_storage.multiple_file_field_include_hidden ` ] ( #config-active-storage-multiple-file-field-include-hidden ) : ` true `
82
+ - [ ` config.active_record.automatic_scope_inversing ` ] ( #config-active-record-automatic-scope-inversing ) : ` true `
83
+ - [ ` config.active_record.verify_foreign_keys_for_fixtures ` ] ( #config-active-record-verify-foreign-keys-for-fixtures ) : ` true `
84
+ - [ ` config.active_record.partial_inserts ` ] ( #config-active-record-partial-inserts ) : ` false `
85
+ - [ ` config.active_storage.variant_processor ` ] ( #config-active-storage-variant-processor ) : ` :vips `
86
+ - [ ` config.action_controller.wrap_parameters_by_default ` ] ( #config-action-controller-wrap-parameters-by-default ) : ` true `
87
+ - [ ` config.action_dispatch.default_headers ` ] ( #config-action-dispatch-default-headers ) : ` { "X-Frame-Options" => "SAMEORIGIN", "X-XSS-Protection" => "0", "X-Content-Type-Options" => "nosniff", "X-Download-Options" => "noopen", "X-Permitted-Cross-Domain-Policies" => "none", "Referrer-Policy" => "strict-origin-when-cross-origin" } `
88
+
89
+ #### Default Values for Target Version 6.1
90
+
91
+ - [ ` config.active_record.has_many_inversing ` ] ( #config-active-record-has-many-inversing ) : ` true `
92
+ - [ ` config.active_record.legacy_connection_handling ` ] ( #config-active-record-legacy-connection-handling ) : ` false `
93
+ - [ ` config.active_storage.track_variants ` ] ( #config-active-storage-track-variants ) : ` true `
94
+ - [ ` config.active_storage.queues.analysis ` ] ( #config-active-storage-queues-analysis ) : ` nil `
95
+ - [ ` config.active_storage.queues.purge ` ] ( #config-active-storage-queues-purge ) : ` nil `
96
+ - [ ` config.action_mailbox.queues.incineration ` ] ( #config-action-mailbox-queues-incineration ) : ` nil `
97
+ - [ ` config.action_mailbox.queues.routing ` ] ( #config-action-mailbox-queues-routing ) : ` nil `
98
+ - [ ` config.action_mailer.deliver_later_queue_name ` ] ( #config-action-mailer-deliver-later-queue-name ) : ` nil `
99
+ - [ ` config.active_job.retry_jitter ` ] ( #config-active-job-retry-jitter ) : ` 0.15 `
100
+ - [ ` config.action_dispatch.cookies_same_site_protection ` ] ( #config-action-dispatch-cookies-same-site-protection ) : ` :lax `
101
+ - [ ` config.action_dispatch.ssl_default_redirect_status ` ] ( `config.action_dispatch.ssl_default_redirect_status` ) = ` 308 `
102
+ - [ ` ActiveSupport.utc_to_local_returns_utc_offset_times ` ] ( #activesupport-utc-to-local-returns-utc-offset-times ) : ` true `
103
+ - [ ` config.action_controller.urlsafe_csrf_tokens ` ] ( #config-action-controller-urlsafe-csrf-tokens ) : ` true `
104
+ - [ ` config.action_view.form_with_generates_remote_forms ` ] ( #config-action-view-form-with-generates-remote-forms ) : ` false `
105
+ - [ ` config.action_view.preload_links_header ` ] ( #config-action-view-preload-links-header ) : ` true `
106
+
107
+ #### Default Values for Target Version 6.0
108
+
109
+ - [ ` config.action_view.default_enforce_utf8 ` ] ( #config-action-view-default-enforce-utf8 ) : ` false `
110
+ - [ ` config.action_dispatch.use_cookies_with_metadata ` ] ( #config-action-dispatch-use-cookies-with-metadata ) : ` true `
111
+ - [ ` config.action_mailer.delivery_job ` ] ( #config-action-mailer-delivery-job ) : ` "ActionMailer::MailDeliveryJob" `
112
+ - [ ` config.active_storage.queues.analysis ` ] ( #config-active-storage-queues-analysis ) : ` :active_storage_analysis `
113
+ - [ ` config.active_storage.queues.purge ` ] ( #config-active-storage-queues-purge ) : ` :active_storage_purge `
114
+ - [ ` config.active_storage.replace_on_assign_to_many ` ] ( #config-active-storage-replace-on-assign-to-many ) : ` true `
115
+ - [ ` config.active_record.collection_cache_versioning ` ] ( #config-active-record-collection-cache-versioning ) : ` true `
116
+
117
+ #### Default Values for Target Version 5.2
118
+
119
+ - [ ` config.active_record.cache_versioning ` ] ( #config-active-record-cache-versioning ) : ` true `
120
+ - [ ` config.action_dispatch.use_authenticated_cookie_encryption ` ] ( #config-action-dispatch-use-authenticated-cookie-encryption ) : ` true `
121
+ - [ ` config.active_support.use_authenticated_message_encryption ` ] ( #config-active-support-use-authenticated-message-encryption ) : ` true `
122
+ - [ ` config.active_support.hash_digest_class ` ] ( #config-active-support-hash-digest-class ) : ` OpenSSL::Digest::SHA1 `
123
+ - [ ` config.action_controller.default_protect_from_forgery ` ] ( #config-action-controller-default-protect-from-forgery ) : ` true `
124
+ - [ ` config.action_view.form_with_generates_ids ` ] ( #config-action-view-form-with-generates-ids ) : ` true `
125
+
126
+ #### Default Values for Target Version 5.1
127
+
128
+ - [ ` config.assets.unknown_asset_fallback ` ] ( #config-assets-unknown-asset-fallback ) : ` false `
129
+ - [ ` config.action_view.form_with_generates_remote_forms ` ] ( #config-action-view-form-with-generates-remote-forms ) : ` true `
130
+
131
+ #### Default Values for Target Version 5.0
132
+
133
+ - [ ` config.action_controller.per_form_csrf_tokens ` ] ( #config-action-controller-per-form-csrf-tokens ) : ` true `
134
+ - [ ` config.action_controller.forgery_protection_origin_check ` ] ( #config-action-controller-forgery-protection-origin-check ) : ` true `
135
+ - [ ` ActiveSupport.to_time_preserves_timezone ` ] ( #activesupport-to-time-preserves-timezone ) : ` true `
136
+ - [ ` config.active_record.belongs_to_required_by_default ` ] ( #config-active-record-belongs-to-required-by-default ) : ` true `
137
+ - [ ` config.ssl_options ` ] ( #config-ssl-options ) : ` { hsts: { subdomains: true } } `
138
+
59
139
### Rails General Configuration
60
140
61
141
The following configuration methods are to be called on a ` Rails::Railtie ` object, such as a subclass of ` Rails::Engine ` or ` Rails::Application ` .
0 commit comments