lib/servel/locals.rb in servel-0.7.0 vs lib/servel/locals.rb in servel-0.8.0

- old
+ new

@@ -18,10 +18,10 @@ list = @fs_path.children.select { |child| child.directory? } list = sort_paths(list).map { |path| build(path) } unless @url_path == "/" list.unshift(Servel::Path.parent("../")) - list.unshift(Servel::Path.top(@url_root)) + list.unshift(Servel::Path.top(@url_root == "" ? "/" : @url_root)) end list end \ No newline at end of file