lib/restful_model_collection.rb in inbox-0.9.0 vs lib/restful_model_collection.rb in inbox-0.10.0

- old
+ new

@@ -92,17 +92,17 @@ models.push(model) end models end - private - def url prefix = "/n/#{@namespace_id}" if @namespace_id @_api.url_for_path("#{prefix}/#{@model_class.collection_name}") end + private + def get_model(id) model = nil RestClient.get("#{url}/#{id}"){ |response,request,result| json = Inbox.interpret_response(result, response, {:expected_class => Object}) @@ -128,6 +128,6 @@ } models end end -end \ No newline at end of file +end