lib/track_changes/changes.rb in track_changes-1.0.0 vs lib/track_changes/changes.rb in track_changes-1.0.1

- old
+ new

@@ -6,10 +6,10 @@ def track_changes_get_changes @__model_changes = self.changes end def track_changes_save_audit - return unless self.id + return unless self.id && !@__model_changes.empty? user = current_user || TrackChanges::Configuration::get_default_user Audit.create_changes(self, @__model_changes, current_user) end end