Mercurial > zeropaste
comparison config/initializers/new_framework_defaults.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 | d31fe32da7a0 |
children |
comparison
equal
deleted
inserted
replaced
458:1c6a056269e6 | 459:07d6c6639adf |
---|---|
15 ActiveSupport.to_time_preserves_timezone = true | 15 ActiveSupport.to_time_preserves_timezone = true |
16 | 16 |
17 # Require `belongs_to` associations by default. Previous versions had false. | 17 # Require `belongs_to` associations by default. Previous versions had false. |
18 Rails.application.config.active_record.belongs_to_required_by_default = true | 18 Rails.application.config.active_record.belongs_to_required_by_default = true |
19 | 19 |
20 # Do not halt callback chains when a callback returns false. Previous versions had true. | |
21 ActiveSupport.halt_callback_chains_on_return_false = false | |
22 | |
23 # Configure SSL options to enable HSTS with subdomains. Previous versions had false. | 20 # Configure SSL options to enable HSTS with subdomains. Previous versions had false. |
24 Rails.application.config.ssl_options = { hsts: { subdomains: true } } | 21 Rails.application.config.ssl_options = { hsts: { subdomains: true } } |