Fixing issues stemming from previous commit in Ruby 1.8.x.
This commit is contained in:
parent
588af563b9
commit
51b450a5ba
|
@ -217,8 +217,8 @@ module PaperTrail
|
||||||
end
|
end
|
||||||
|
|
||||||
def changes_for_paper_trail
|
def changes_for_paper_trail
|
||||||
self.changes.select do |key, value|
|
self.changes.delete_if do |key, value|
|
||||||
notably_changed.include?(key)
|
!notably_changed.include?(key)
|
||||||
end.tap do |changes|
|
end.tap do |changes|
|
||||||
self.class.serialize_attribute_changes(changes) # Use serialized value for attributes when necessary
|
self.class.serialize_attribute_changes(changes) # Use serialized value for attributes when necessary
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue