lib/jsonapi/operations_processor.rb in jsonapi-resources-0.5.0 vs lib/jsonapi/operations_processor.rb in jsonapi-resources-0.5.1

- old
+ new

@@ -31,13 +31,11 @@ @operations = request.operations # Use transactions if more than one operation and if one of the operations can be transactional # Even if transactional transactions won't be used unless the derived OperationsProcessor supports them. @transactional = false - if @operations.length > 1 - @operations.each do |operation| - @transactional |= operation.transactional - end + @operations.each do |operation| + @transactional |= operation.transactional end run_callbacks :operations do transaction do # Links and meta data global to the set of operations