lib/servel/index.rb in servel-0.10.0 vs lib/servel/index.rb in servel-0.11.0
- old
+ new
@@ -25,9 +25,11 @@
unless @url_path == "/"
list.unshift(Servel::EntryFactory.parent("../"))
list.unshift(Servel::EntryFactory.top(@url_root == "" ? "/" : @url_root))
end
+ list.unshift(Servel::EntryFactory.home("/")) if @url_root != ""
+
list
end
def files
list = @fs_path.children.select { |child| child.file? }
\ No newline at end of file