lib/jsonapi/operations_processor.rb in jsonapi-resources-0.4.1 vs lib/jsonapi/operations_processor.rb in jsonapi-resources-0.4.2
- old
+ new
@@ -25,11 +25,10 @@
end
def process(request)
@results = JSONAPI::OperationResults.new
@request = request
- @context = request.context
@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
@@ -80,10 +79,10 @@
def rollback
end
def process_operation(operation)
- operation.apply(@context)
+ operation.apply
end
end
end
class BasicOperationsProcessor < JSONAPI::OperationsProcessor
\ No newline at end of file