annotate config/initializers/new_framework_defaults_6_0.rb @ 189:df86d579634e

secret_key_base isn't needed anymore
author nanaya <me@nanaya.pro>
date Sun, 14 Jul 2019 15:57:08 +0900
parents f67f3ad50270
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
1 # Be sure to restart your server when you modify this file.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
2 #
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
3 # This file contains migration options to ease your Rails 6.0 upgrade.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
4 #
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
5 # Once upgraded flip defaults one by one to migrate to the new default.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
6 #
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
7 # Read the Guide for Upgrading Ruby on Rails for more info on each option.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
8
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
9 # Don't force requests from old versions of IE to be UTF-8 encoded.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
10 # Rails.application.config.action_view.default_enforce_utf8 = false
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
11
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
12 # Embed purpose and expiry metadata inside signed and encrypted
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
13 # cookies for increased security.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
14 #
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
15 # This option is not backwards compatible with earlier Rails versions.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
16 # It's best enabled when your entire app is migrated and stable on 6.0.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
17 # Rails.application.config.action_dispatch.use_cookies_with_metadata = true
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
18
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
19 # Return false instead of self when enqueuing is aborted from a callback.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
20 # Rails.application.config.active_job.return_false_on_aborted_enqueue = true
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
21
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
22 # Send Active Storage analysis and purge jobs to dedicated queues.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
23 # Rails.application.config.active_storage.queues.analysis = :active_storage_analysis
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
24 # Rails.application.config.active_storage.queues.purge = :active_storage_purge
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
25
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
26 # Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
27 #
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
28 # The default delivery jobs (ActionMailer::Parameterized::DeliveryJob, ActionMailer::DeliveryJob),
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
29 # will be removed in Rails 6.1. This setting is not backwards compatible with earlier Rails versions.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
30 # If you send mail in the background, job workers need to have a copy of
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
31 # MailDeliveryJob to ensure all delivery jobs are processed properly.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
32 # Make sure your entire app is migrated and stable on 6.0 before using this setting.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents:
diff changeset
33 # Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"