module DeprecatedShowRootAlone

Public Instance Methods

options_for_render(options = {}) click to toggle source
Calls superclass method
# File lib/dat_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)
    DatGretel.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