mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #23014 from jonatack/improve-generated-config-files
Improve generated config initializer files
This commit is contained in:
commit
b2874aec10
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Require `belongs_to` associations by default. This is a new Rails 5.0 default,
|
||||
# so introduced as a config to ensure apps made with earlier versions of Rails aren't affected when upgrading.
|
||||
# Require `belongs_to` associations by default. This is a new Rails 5.0
|
||||
# default, so it is introduced as a configuration option to ensure that apps
|
||||
# made on earlier versions of Rails are not affected when upgrading.
|
||||
Rails.application.config.active_record.belongs_to_required_by_default = true
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Do not halt callback chains when a callback returns false. This is a new Rails 5.0 default,
|
||||
# so introduced as a config to ensure apps made with earlier versions of Rails aren't affected when upgrading.
|
||||
# Do not halt callback chains when a callback returns false. This is a new
|
||||
# Rails 5.0 default, so it is introduced as a configuration option to ensure
|
||||
# that apps made with earlier versions of Rails are not affected when upgrading.
|
||||
ActiveSupport.halt_callback_chains_on_return_false = false
|
||||
|
|
Loading…
Reference in a new issue