comparison config/initializers/new_framework_defaults_5_2.rb @ 459:07d6c6639adf

Upgrade to rails 5.2. RIP code style.
author nanaya <me@nanaya.pro>
date Sat, 14 Apr 2018 04:19:52 +0900
parents
children
comparison
equal deleted inserted replaced
458:1c6a056269e6 459:07d6c6639adf
1 # Be sure to restart your server when you modify this file.
2 #
3 # This file contains migration options to ease your Rails 5.2 upgrade.
4 #
5 # Once upgraded flip defaults one by one to migrate to the new default.
6 #
7 # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
9 # Make Active Record use stable #cache_key alongside new #cache_version method.
10 # This is needed for recyclable cache keys.
11 # Rails.application.config.active_record.cache_versioning = true
12
13 # Use AES-256-GCM authenticated encryption for encrypted cookies.
14 # Also, embed cookie expiry in signed or encrypted cookies for increased security.
15 #
16 # This option is not backwards compatible with earlier Rails versions.
17 # It's best enabled when your entire app is migrated and stable on 5.2.
18 #
19 # Existing cookies will be converted on read then written with the new scheme.
20 # Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
21
22 # Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
23 # instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
24 # Rails.application.config.active_support.use_authenticated_message_encryption = true
25
26 # Add default protection from forgery to ActionController::Base instead of in
27 # ApplicationController.
28 # Rails.application.config.action_controller.default_protect_from_forgery = true
29
30 # Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
31 # 'f' after migrating old data.
32 # Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
33
34 # Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
35 # Rails.application.config.active_support.use_sha1_digests = true