annotate config/initializers/new_framework_defaults.rb @ 471:c8e2f6b22527 bootstrap-4

Fix radio button alignment
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 22:35:44 +0900
parents 07d6c6639adf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
437
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
1 # Be sure to restart your server when you modify this file.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
2 #
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
3 # This file contains migration options to ease your Rails 5.0 upgrade.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
4 #
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
5 # Read the Rails 5.0 release notes for more info on each option.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
6
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
7 # Enable per-form CSRF tokens. Previous versions had false.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
8 Rails.application.config.action_controller.per_form_csrf_tokens = true
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
9
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
10 # Enable origin-checking CSRF mitigation. Previous versions had false.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
11 Rails.application.config.action_controller.forgery_protection_origin_check = true
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
12
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
13 # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
14 # Previous versions had false.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
15 ActiveSupport.to_time_preserves_timezone = true
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
16
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
17 # Require `belongs_to` associations by default. Previous versions had false.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
18 Rails.application.config.active_record.belongs_to_required_by_default = true
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
19
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
20 # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
21 Rails.application.config.ssl_options = { hsts: { subdomains: true } }