lib/tickethub/collection.rb in tickethub-0.3.9 vs lib/tickethub/collection.rb in tickethub-0.3.11
- old
+ new
@@ -110,10 +110,10 @@
endpoint = (if path.is_a? Hash
params, options = [path, params]
self.endpoint
else self.endpoint[path] end)
- if (response = endpoint.send(key, self.params.merge(params))).body.length > 2
+ if (response = endpoint.send(key, self.params.merge(params))).body.length >= 2
return response.decoded
end
end
end
\ No newline at end of file