lib/cmis/connection.rb in cmis-ruby-0.5.16 vs lib/cmis/connection.rb in cmis-ruby-0.5.17

- old
+ new

@@ -71,10 +71,10 @@ unless @repository_infos.key?(repository_id) @repository_infos = @http.get(@service_url).body end if @repository_infos.key?(repository_id) - key = object_id ? 'rootFolderUrl' : 'repositoryUrl' + key = (object_id && !object_id.is_a?(Array)) ? 'rootFolderUrl' : 'repositoryUrl' @repository_infos[repository_id][key] else raise Exceptions::ObjectNotFound, "repositoryId: #{repository_id}" end end