diff options
author | Jon Atack <jonnyatack@gmail.com> | 2016-01-11 17:05:05 +0100 |
---|---|---|
committer | Jon Atack <jonnyatack@gmail.com> | 2016-01-13 12:45:55 +0100 |
commit | 9b52e447a6ba152337e0aa22fddb4fbb7f2d485e (patch) | |
tree | 71903d0363e203a08c505fc6d3e6f8cac22eda1f /railties/lib/rails/generators | |
parent | 179df9df68396a6916f62192971838b7e73d5f76 (diff) | |
download | rails-9b52e447a6ba152337e0aa22fddb4fbb7f2d485e.tar.gz rails-9b52e447a6ba152337e0aa22fddb4fbb7f2d485e.tar.bz2 rails-9b52e447a6ba152337e0aa22fddb4fbb7f2d485e.zip |
Improve generated config initializer files
- Fix grammar.
- Improve readability/understanding.
- Wrap lines at 80 characters.
[skip ci]
Diffstat (limited to 'railties/lib/rails/generators')
2 files changed, 6 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb index 78f4530514..f613b40f80 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/active_record_belongs_to_required_by_default.rb @@ -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 diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb index 0b718aa1c6..649e82280e 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/callback_terminator.rb @@ -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 |