lib/pragma/operation/base.rb in pragma-operation-1.1.0 vs lib/pragma/operation/base.rb in pragma-operation-1.1.1

- old
+ new

@@ -121,10 +121,10 @@ # method can be called multiple times, overriding the previous context. # # @param status [Integer|Symbol] an HTTP status code # @param headers [Hash] HTTP headers # @param resource [Object] an object responding to +#to_json+ - def respond_with(status: :ok, headers: {}, resource:) + def respond_with(status: nil, headers: {}, resource: nil) context.status = status context.headers = headers.to_h context.resource = resource end