diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-22 13:25:12 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-22 13:25:12 -0200 |
commit | 8f17a834ae98cea28ceff22bf11ce346b867bc90 (patch) | |
tree | 4d931a2b04628300b4212210a548ebf2931bcf68 | |
parent | 2a29c7d3b7d4cb5779ffb3d728f1e6e91d677067 (diff) | |
download | rails-8f17a834ae98cea28ceff22bf11ce346b867bc90.tar.gz rails-8f17a834ae98cea28ceff22bf11ce346b867bc90.tar.bz2 rails-8f17a834ae98cea28ceff22bf11ce346b867bc90.zip |
Improve the CHANGELOG entry [ci skip]
-rw-r--r-- | activerecord/CHANGELOG.md | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 59d586c6f8..7db99d4aeb 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,7 +1,19 @@ -* Calling reset on a collection association should unload the assocation. +* Reset the collection association when calling `reset` on it. + + Before: + + post.comments.loaded? # => true + post.comments.reset + post.comments.loaded? # => true + + After: + + post.comments.loaded? # => true + post.comments.reset + post.comments.loaded? # => false Fixes #13777. - + *Kelsey Schlarman* * Make enum fields work as expected with the `ActiveModel::Dirty` API. |