25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/dat_gretel/deprecated/yield_links.rb', line 25
def breadcrumbs(options = {})
if block_given?
DatGretel.show_deprecation_warning(
"Calling `breadcrumbs` with a block has been deprecated and will be removed in Gretel version 4.0. Please use `tap` instead. Example:\n" +
"\n" +
" breadcrumbs(autoroot: false).tap do |links|\n" +
" if links.any?\n" +
" # process links here\n" +
" end\n" +
" end\n"
)
yield gretel_renderer.render(options)
else
super(options)
end
end
|