Skip to content
Browse files

Cleanup

  • Loading branch information...
1 parent 002ff62 commit 4f2f8fd80508968ef59915fb0ac2b192aa51a202 @sferik sferik committed Oct 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/faraday/parse.rb
View
6 lib/faraday/parse.rb
@@ -29,7 +29,7 @@ def initialize(app)
private
- def parse_json(response_body)
+ def self.parse_json(response_body)
case response_body
when ''
nil
@@ -38,11 +38,11 @@ def parse_json(response_body)
when 'false'
false
else
- ::MultiJson.decode(response[:body])
+ ::MultiJson.decode(response_body)
end
end
- def parse_xml
+ def self.parse_xml(response_body)
::MultiXml.parse(response_body)
end
end

0 comments on commit 4f2f8fd

Please sign in to comment.
Something went wrong with that request. Please try again.