Skip to content
Snippets Groups Projects
Commit 78b574e1 authored by zzjin's avatar zzjin
Browse files

update yield to return string path

Former-commit-id: 2e62ec86
parent a08c1681
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -81,7 +81,7 @@ module TreeHelper
part_path = ""
parts = @path.split('/')
 
yield('..', parts) if parts.count > max_links
yield('..', File.join(*parts.first(parts.count - 2))) if parts.count > max_links
 
parts.each do |part|
part_path = File.join(part_path, part) unless part_path.empty?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment