Merge pull request #8241 from cirosantilli/rm-unneeded-backslash

Remove unneeded backslash: "\/" == "/"
This commit is contained in:
Robert Schilling 2014-11-04 14:03:50 +01:00
commit 9cf50550d7

View file

@ -66,7 +66,7 @@ module TreeHelper
def tree_breadcrumbs(tree, max_links = 2) def tree_breadcrumbs(tree, max_links = 2)
if @path.present? if @path.present?
part_path = "" part_path = ""
parts = @path.split("\/") parts = @path.split('/')
yield('..', nil) if parts.count > max_links yield('..', nil) if parts.count > max_links