lib/ridley/resource.rb in ridley-1.0.0.rc3 vs lib/ridley/resource.rb in ridley-1.0.0
- old
+ new
@@ -107,10 +107,10 @@
def raw_request(method, *args)
unless Connection::METHODS.include?(method)
raise Errors::HTTPUnknownMethod, "unknown http method: #{method}"
end
- defer { connection.send(method, *args) }
+ connection.send(method, *args)
rescue Errors::HTTPError, Errors::ClientError => ex
abort(ex)
end
end
end