Sha256: 4fe5428f6dafa90dcf35607682c547b8675393bd433b85d0d98b9a2e5037d24c
Contents?: true
Size: 377 Bytes
Versions: 8
Compression:
Stored size: 377 Bytes
Contents
module Admin::BaseHelper def breadcrumb_nav category ancestor(category) + link_to(category.name, :id => category) end private def ancestor(category, hide_last = false) if category.parent ancestor(category.parent) + link_to(category.parent.name, :id => category.parent) + (hide_last ? '' : ' > ') else "" end end end
Version data entries
8 entries across 8 versions & 2 rubygems