lib/fanforce/main.rb in fanforce-0.1.9 vs lib/fanforce/main.rb in fanforce-0.2.0

- old
+ new

@@ -44,11 +44,11 @@ def handle_response(response, request, path, query) case response.code when 200, 201 begin - response = MultiJson.load(response, :symbolize_keys => symbolize_keys) + response = decode_json(response) rescue raise UnknownError.new(response, request, path, query) end when 400 raise BadRequestError.new(response, request, path, query) @@ -82,8 +82,7 @@ end def complete_path(path) 'http://' + $API_DOMAIN + path end - end