Module: DeprecatedShowRootAlone

Defined in:
lib/gretel/deprecated/show_root_alone.rb

Instance Method Summary collapse

Instance Method Details

#options_for_render(options = {}) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/gretel/deprecated/show_root_alone.rb', line 16

def options_for_render(options = {})
  options = super(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