lib/ruote/storage/hash_storage.rb in ruote-2.1.9 vs lib/ruote/storage/hash_storage.rb in ruote-2.1.10
- old
+ new
@@ -55,10 +55,11 @@
synchronize do
pre = get(doc['type'], doc['_id'])
- if pre && ( ! opts[:update_rev]) && pre['_rev'] != doc['_rev']
+ #if pre && ( ! opts[:update_rev]) && pre['_rev'] != doc['_rev']
+ if pre && pre['_rev'] != doc['_rev']
return pre
end
if pre.nil? && doc['_rev']
return true