lib/clean_model/remote.rb in clean_model-0.0.1 vs lib/clean_model/remote.rb in clean_model-0.0.2
- old
+ new
@@ -18,10 +18,10 @@
end
def http_get(path, data={})
begin
response = http.get(path, data)
- if response.is_a?(Net::HTTPOK)
+ if response.is_a?(Net::HTTPSuccess)
block_given? ? yield(response) : response
else
raise InvalidResponse.new(response)
end
rescue WebClient::Error => ex
\ No newline at end of file