aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2015-12-21 23:32:21 -0200
committerRafael França <rafaelmfranca@gmail.com>2015-12-21 23:32:21 -0200
commite4e9d91097d68fa9da4d08b7cad9b1fc521cf9c1 (patch)
treed8b248eca1b8b3e97f1a06000c409e5bf2e86474 /guides/source/configuring.md
parent7c4a7e64dcfa26d59413a4dc73fd311d12a63aef (diff)
parentbdf280bef1fc56ba9f012011707a37f32a569cab (diff)
downloadrails-e4e9d91097d68fa9da4d08b7cad9b1fc521cf9c1.tar.gz
rails-e4e9d91097d68fa9da4d08b7cad9b1fc521cf9c1.tar.bz2
rails-e4e9d91097d68fa9da4d08b7cad9b1fc521cf9c1.zip
Merge pull request #22709 from jonatack/clarify-explanation-for-new-config-halt-callback-chains
Clarify config settings for AS::halt_callback_chains_on_return_false
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 54a05842bf..47acff7c3f 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -545,7 +545,7 @@ There are a few configuration options available in Active Support:
* `config.active_support.time_precision` sets the precision of JSON encoded time values. Defaults to `3`.
-* `ActiveSupport.halt_callback_chains_on_return_false` specifies whether Active Record and Active Model callback chains can be halted by returning `false` in a 'before' callback. Defaults to `true`.
+* `ActiveSupport.halt_callback_chains_on_return_false` specifies whether Active Record and Active Model callback chains can be halted by returning `false` in a 'before' callback. When set to `false`, callback chains are halted only when explicitly done so with `throw(:abort)`. When set to `true`, callback chains are halted when a callback returns false (the previous behavior before Rails 5) and a deprecation warning is given. Defaults to `true` during the deprecation period. New Rails 5 apps generate an initializer file called `callback_terminator.rb` which sets the value to `false`. This file is *not* added when running `rake rails:update`, so returning `false` will still work on older apps ported to Rails 5 and display a deprecation warning to prompt users to update their code.
* `ActiveSupport::Logger.silencer` is set to `false` to disable the ability to silence logging in a block. The default is `true`.