aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2014-12-08 06:53:24 -0800
committerclaudiob <claudiob@gmail.com>2015-01-02 15:31:56 -0800
commit91b8129320522f664801f122daea4a7628db90a7 (patch)
treee567a67d852bec7519d9249f70c2983664c75459 /activemodel/CHANGELOG.md
parentf767981286b4c7dcb96e061a6f3edcc334008ea8 (diff)
downloadrails-91b8129320522f664801f122daea4a7628db90a7.tar.gz
rails-91b8129320522f664801f122daea4a7628db90a7.tar.bz2
rails-91b8129320522f664801f122daea4a7628db90a7.zip
Deprecate `false` as the way to halt AM callbacks
Before this commit, returning `false` in an ActiveModel `before_` callback such as `before_create` would halt the callback chain. After this commit, the behavior is deprecated: will still work until the next release of Rails but will also display a deprecation warning. The preferred way to halt a callback chain is to explicitly `throw(:abort)`.
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 562d49d069..b52ec8a67f 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,6 +1,6 @@
* Deprecate returning `false` as a way to halt callback chains.
- Returning `false` in a `before_` validation callback will display a
+ Returning `false` in a `before_` callback will display a
deprecation warning explaining that the preferred method to halt a callback
chain is to explicitly `throw(:abort)`.