class Object
Public Class Methods
layout(&block)
click to toggle source
Was used to lay out breadcrumbs in an initializer. Deprecated since v2.1.0 and removed in v3.0.0. Will raise an exception if used. Put breadcrumbs in config/breadcrumbs.rb
instead (see github.com/lassebunk/gretel/blob/master/README.md for details).
# File lib/gretel/deprecated/layout.rb, line 7 def layout(&block) raise ( "Gretel::Crumbs.layout was removed in Gretel version 3.0. " + "Please put your breadcrumbs in `config/breadcrumbs.rb`. " + "This will also automatically reload your breadcrumbs when you change them in the development environment. " + "See https://github.com/lassebunk/gretel/blob/master/README.md for details.") end
Public Instance Methods
options_for_render_with_show_root_alone(options = {})
click to toggle source
# File lib/gretel/deprecated/show_root_alone.rb, line 3 def options_for_render_with_show_root_alone(options = {}) options = options_for_render_without_show_root_alone(options) if show_root_alone = options.delete(:show_root_alone) Gretel.show_deprecation_warning "The :show_root_alone option is deprecated and will be removed in Gretel v4.0.0. Use `breadcrumbs(display_single_fragment: #{show_root_alone.inspect})` instead." options[:display_single_fragment] = show_root_alone end options end
options_for_style_with_default_style_key(style_key)
click to toggle source
# File lib/gretel/deprecated/default_style_key.rb, line 3 def options_for_style_with_default_style_key(style_key) if style_key == :default Gretel.show_deprecation_warning "The :default style key is now called :inline. Please use `breadcrumbs style: :inline` instead or omit it, as it is the default." style_key = :inline end options_for_style_without_default_style_key(style_key) end