Skip to content

Commit be508cf

Browse files
committed
Remove number of operations check from transactional decision.
1 parent 88e9c26 commit be508cf

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/jsonapi/operations_processor.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ def process(request)
3333
# Use transactions if more than one operation and if one of the operations can be transactional
3434
# Even if transactional transactions won't be used unless the derived OperationsProcessor supports them.
3535
@transactional = false
36-
if @operations.length > 1
37-
@operations.each do |operation|
38-
@transactional |= operation.transactional
39-
end
36+
@operations.each do |operation|
37+
@transactional |= operation.transactional
4038
end
4139

4240
run_callbacks :operations do

0 commit comments

Comments
 (0)