From 444b576567d3a965c705a8405b0339580237ef23 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Fri, 28 Dec 2012 22:27:15 +0300 Subject: [PATCH] parser proc accepts two args --- lib/gitlab/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/request.rb b/lib/gitlab/request.rb index 3a26e37b8..44f95f563 100644 --- a/lib/gitlab/request.rb +++ b/lib/gitlab/request.rb @@ -7,7 +7,7 @@ class Request include HTTParty format :json headers 'Accept' => 'application/json' - parser Proc.new {|body| parse(body)} + parser Proc.new {|body, _| parse(body)} # Converts the response body to an ObjectifiedHash. def self.parse(body)