Skip to content

Commit

Permalink
parser proc accepts two args
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Dec 28, 2012
1 parent eaa39e0 commit 444b576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitlab/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 444b576

Please sign in to comment.