Sha256: 39820ccb4993e6de863bd3976c6a8447e0119dfdf419aecc702f761da149af73
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
Gretel::Renderer.class_eval do # Loads parent links from trail if +params[:trail]+ is present. def parent_links_for_with_trail(crumb) if params[Gretel::Trails.trail_param].present? Gretel::Trails.decode(params[Gretel::Trails.trail_param]) else parent_links_for_without_trail(crumb) end end alias_method_chain :parent_links_for, :trail # Returns encoded trail for the breadcrumb. def trail @trail ||= Gretel::Trails.encode(links) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gretel-trails-0.0.2 | lib/gretel/trails/patches/renderer.rb |