breadcrumbs_helper.rb revision 4a46649d5c0b3f77917adaa5f6bfc213fb7a0e88
path ||= ''
result = [{
last: false,
path: fancy_repository_path(repository, path: nil, oid: oid)
}]
crumbs.each_with_index do | c, i |
result << {
name: c,
last: false,
}
end
result.last[:last] = true
end
end