lib/restful_resource/base.rb in restful_resource-0.8.3 vs lib/restful_resource/base.rb in restful_resource-0.8.4

- old
+ new

@@ -35,9 +35,13 @@ def self.get(params={}) response = http.get(collection_url(params)) RestfulResource::OpenObject.new(parse_json(response.body)) end + def self.put(params={}, data: {}) + http.put(collection_url(params), data) + end + def self.all self.where end def self.action(action_name)