lib/sequel/plugins/bitemporal.rb in sequel_bitemporal-0.4.3 vs lib/sequel/plugins/bitemporal.rb in sequel_bitemporal-0.4.4

- old
+ new

@@ -122,10 +122,10 @@ {} end end def attributes=(attributes) - if !new? && attributes.delete(:partial_update) && current_version && !@pending_version + if attributes.delete(:partial_update) && !@pending_version && !new? && current_version current_attributes = current_version.keys.inject({}) do |hash, key| hash[key] = current_version.send key hash end current_attributes.delete :valid_from