From 4af6f366caa4a0f9a34fdd429d4c63efd72886b9 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Tue, 23 Oct 2012 22:09:27 -0600 Subject: [PATCH] Fix show_all /pages --- lib/gollum/file.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/gollum/file.rb b/lib/gollum/file.rb index 856eae4d..f9a5e754 100644 --- a/lib/gollum/file.rb +++ b/lib/gollum/file.rb @@ -17,12 +17,8 @@ module Gollum # # Returns the String url_path def url_path - path = if self.path.include?('/') - self.path.sub(/\/[^\/]+$/, '/') - else - '' - end - + path = self.path + path = path.sub(/\/[^\/]+$/, '/') if path.include?('/') path end