annotate config/initializers/new_framework_defaults.rb @ 446:86729239f2de

Update license wording and year Based on original ISC license as currently used by OpenBSD.
author nanaya <me@myconan.net>
date Sat, 25 Mar 2017 17:58:49 +0900
parents d31fe32da7a0
children 07d6c6639adf
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 # Do not halt callback chains when a callback returns false. Previous versions had true.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
21 ActiveSupport.halt_callback_chains_on_return_false = false
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
22
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents:
diff changeset
23 # 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
24 Rails.application.config.ssl_options = { hsts: { subdomains: true } }