Sha256: a924a027ccda19caba0cd7925a6b2c91e8f711b5237a08ed0191f45c0595fd75
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 Bytes
Contents
Gretel::ViewHelpers.class_eval do def breadcrumbs_with_yield_links(options = {}) if block_given? Gretel.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 breadcrumbs_without_yield_links(options) end end alias_method_chain :breadcrumbs, :yield_links end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gretel-3.0.8 | lib/gretel/deprecated/yield_links.rb |
gretel-3.0.7 | lib/gretel/deprecated/yield_links.rb |
gretel-3.0.6 | lib/gretel/deprecated/yield_links.rb |