lib/vestal_versions/changes.rb in houston-vestal_versions-2.0.1 vs lib/vestal_versions/changes.rb in houston-vestal_versions-3.0.0
- old
+ new
@@ -46,11 +46,11 @@
# Stores the incremental changes that are appended to the cumulative changes before version
# creation. Incremental changes are reset when the record is saved because they represent
# a subset of the dirty attribute changes, which are reset upon save.
def incremental_version_changes
- changes.slice(*versioned_columns)
+ previous_changes.slice(*versioned_columns)
end
# Simply resets the cumulative changes after version creation.
def reset_version_changes
@version_changes = nil
@@ -116,6 +116,6 @@
def reverse_changes!
replace(reverse_changes)
end
end
end
-end
\ No newline at end of file
+end