lib/restful_resource/base.rb in restful_resource-1.3.0 vs lib/restful_resource/base.rb in restful_resource-1.4.0

- old
+ new

@@ -29,12 +29,12 @@ url = collection_url(params) response = http.get(url) self.paginate_response(response) end - def self.get(params={}) + def self.get(params = {}) response = http.get(collection_url(params)) - RestfulResource::OpenObject.new(parse_json(response.body)) + self.new(parse_json(response.body)) end def self.delete(id, **params) response = http.delete(member_url(id, params)) RestfulResource::OpenObject.new(parse_json(response.body))