diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-10-01 19:17:31 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-10-01 19:17:31 +0200 |
commit | f78650d56e75ee266a17e12cd97a136d10484a67 (patch) | |
tree | deed1044692fa672ae1a9f74ed4164be8cd4337e /railties | |
parent | 7db7b287ecd616d61dd09147888d02b74d219dd1 (diff) | |
parent | e2b3ccd1aa56ae467b0fe5c7466136a4d18fa7ef (diff) | |
download | rails-f78650d56e75ee266a17e12cd97a136d10484a67.tar.gz rails-f78650d56e75ee266a17e12cd97a136d10484a67.tar.bz2 rails-f78650d56e75ee266a17e12cd97a136d10484a67.zip |
Merge pull request #21760 from repinel/refactor-as-callbacks-halt-config
Refactor AS::Callbacks halt config and fix the documentation
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 80ef1af7b5..3e45a09dec 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -296,10 +296,11 @@ Newly generated Rails apps have a new initializer called `callback_terminator.rb` which sets the value of the configuration option - `config.active_support.halt_callback_chains_on_return_false` to `false`. + `ActiveSupport.halt_callback_chains_on_return_false` to `false`. - As a result, new Rails apps do not halt callback chains when a callback - returns `false`; only when they are explicitly halted with `throw(:abort)`. + As a result, new Rails apps do not halt Active Record and Active Model + callback chains when a callback returns `false`; only when they are + explicitly halted with `throw(:abort)`. The terminator is *not* added when running `rake rails:update`, so returning `false` will still work on old apps ported to Rails 5, displaying a |