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
1 changed files with 2 additions and 2 deletions

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