1
0
Fork 0
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:
Ben Atkins 2013-02-11 13:10:22 -05:00
parent 588af563b9
commit 51b450a5ba

View file

@ -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