parent
10396ccd67
commit
baa9b1a9cd
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue