Sha256: 4eeacf81aac750d603375180f99a6236bc5da4b733619b643dcedae77dc8cf31

Contents?: true

Size: 562 Bytes

Versions: 11

Compression:

Stored size: 562 Bytes

Contents

Gretel::Renderer.class_eval do
  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

  alias_method_chain :options_for_render, :show_root_alone
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gretel-3.0.8 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.7 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.6 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.5 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.4 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.3 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.2 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.1 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.0 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.0.beta6 lib/gretel/deprecated/show_root_alone.rb
gretel-3.0.0.beta5 lib/gretel/deprecated/show_root_alone.rb