Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / services / api / config / initializers / new_framework_defaults.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Be sure to restart your server when you modify this file.
6 #
7 # This file contains migration options to ease your Rails 5.0 upgrade.
8 #
9 # Once upgraded flip defaults one by one to migrate to the new default.
10 #
11 # Read the Guide for Upgrading Ruby on Rails for more info on each option.
12
13 Rails.application.config.action_controller.raise_on_unfiltered_parameters = true
14
15 # Enable per-form CSRF tokens. Previous versions had false.
16 Rails.application.config.action_controller.per_form_csrf_tokens = false
17
18 # Enable origin-checking CSRF mitigation. Previous versions had false.
19 Rails.application.config.action_controller.forgery_protection_origin_check = false
20
21 # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
22 # Previous versions had false.
23 ActiveSupport.to_time_preserves_timezone = false
24
25 # Require `belongs_to` associations by default. Previous versions had false.
26 Rails.application.config.active_record.belongs_to_required_by_default = false