lib/apidiesel/api.rb in apidiesel-0.10 vs lib/apidiesel/api.rb in apidiesel-0.11
- old
+ new
@@ -116,13 +116,13 @@
response_handlers =
action_klass.response_handlers.any? ? action_klass.response_handlers : self.class.response_handlers
request_handlers.each do |handler|
request = handler.run(request, @config)
- break if request.response_body.present?
+ break if request.response_body != nil
end
- unless request.response_body.present?
+ unless request.response_body != nil
raise "All request handlers failed to deliver a response"
end
response_handlers.each do |handler|
request = handler.run(request, @config)