lib/reviewed/request.rb in reviewed-0.1.32 vs lib/reviewed/request.rb in reviewed-0.2.0

- old
+ new

@@ -14,10 +14,11 @@ @client = opts[:client] || Reviewed::Client.new end # Get request on resource#show def find(id, params={}) - object_from_response(:get, "#{path}/#{id}", params) + url_path = [path, CGI::escape(id.to_s)] + object_from_response(:get, url_path.join('/'), params) end # Get request on resource#index with query params def where(params={}) collection_from_response(:get, path, params)