mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Fixing issues stemming from previous commit in Ruby 1.8.x.
This commit is contained in:
parent
588af563b9
commit
51b450a5ba
1 changed files with 2 additions and 2 deletions
|
@ -217,8 +217,8 @@ module PaperTrail
|
|||
end
|
||||
|
||||
def changes_for_paper_trail
|
||||
self.changes.select do |key, value|
|
||||
notably_changed.include?(key)
|
||||
self.changes.delete_if do |key, value|
|
||||
!notably_changed.include?(key)
|
||||
end.tap do |changes|
|
||||
self.class.serialize_attribute_changes(changes) # Use serialized value for attributes when necessary
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue