Docs: Changelog entry for #1177

[ci skip]
This commit is contained in:
Jared Beck 2019-01-02 19:00:22 -05:00
parent 10396ccd67
commit baa9b1a9cd
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,8 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
### Fixed
- None
- [#1177](https://github.com/paper-trail-gem/paper_trail/pull/1177) -
Do not store ignored and skipped attributes in `object_changes` on destroy.
## 10.1.0 (2018-12-04)

View File

@ -30,7 +30,10 @@ module PaperTrail
private
# Rails' implementation returns nothing on destroy :/
# Rails' implementation (eg. `@record.saved_changes`) returns nothing on
# destroy, so we have to build the hash we want.
#
# @override
def changes_in_latest_version
@record.attributes.map { |attr, value| [attr, [value, nil]] }.to_h
end