diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-06 10:39:03 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-06 10:39:03 -0700 |
commit | e638c613d0ecfa44ddc3d328c0979318cf73e33e (patch) | |
tree | 36a2ba05339db71fba34f6992491835cf45cec8a /activerecord/CHANGELOG.md | |
parent | b4fb80cbdab118125df0d48e74b6818fe5ec65d5 (diff) | |
parent | 4faaa811614b408b32422692ce36024442d02ffb (diff) | |
download | rails-e638c613d0ecfa44ddc3d328c0979318cf73e33e.tar.gz rails-e638c613d0ecfa44ddc3d328c0979318cf73e33e.tar.bz2 rails-e638c613d0ecfa44ddc3d328c0979318cf73e33e.zip |
Merge pull request #6629 from marcandre/destroy
Add ActiveRecord::Base#destroy!
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index b04c54ce7f..55cc85a63d 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* Added `#destroy!` which acts like `#destroy` but will raise an + `ActiveRecord::RecordNotDestroyed` exception instead of returning `false`. + + *Marc-André Lafortune* + * Allow blocks for `count` with `ActiveRecord::Relation`, to work similar as `Array#count`: |