We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e9c26 commit be508cfCopy full SHA for be508cf
1 file changed
lib/jsonapi/operations_processor.rb
@@ -33,10 +33,8 @@ def process(request)
33
# Use transactions if more than one operation and if one of the operations can be transactional
34
# Even if transactional transactions won't be used unless the derived OperationsProcessor supports them.
35
@transactional = false
36
- if @operations.length > 1
37
- @operations.each do |operation|
38
- @transactional |= operation.transactional
39
- end
+ @operations.each do |operation|
+ @transactional |= operation.transactional
40
end
41
42
run_callbacks :operations do
0 commit comments