File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def conditions_for_write
7373 # Add an optimistic locking check if the lock_version column exists
7474 # Uses the original lock_version value from Dirty API
7575 # in case user changed 'lock_version' manually
76- if @model . class . attributes [ :lock_version ] && ( @model . changes [ :lock_version ] [ 0 ] )
76+ if @model . class . attributes [ :lock_version ] && @model . changes [ :lock_version ] [ 0 ]
7777 conditions [ :if ] ||= { }
7878 conditions [ :if ] [ :lock_version ] = @model . changes [ :lock_version ] [ 0 ]
7979 end
@@ -96,7 +96,7 @@ def options_to_update_item
9696 # Add an optimistic locking check if the lock_version column exists
9797 # Uses the original lock_version value from Dirty API
9898 # in case user changed 'lock_version' manually
99- if @model . class . attributes [ :lock_version ] && ( @model . changes [ :lock_version ] [ 0 ] )
99+ if @model . class . attributes [ :lock_version ] && @model . changes [ :lock_version ] [ 0 ]
100100 conditions [ :if ] ||= { }
101101 conditions [ :if ] [ :lock_version ] = @model . changes [ :lock_version ] [ 0 ]
102102 end
You can’t perform that action at this time.
0 commit comments