Sha256: 0d670bc1a08ec70e14569cfa665215e5a57599a8eae42e58c5a47d03b877579a

Contents?: true

Size: 596 Bytes

Versions: 5

Compression:

Stored size: 596 Bytes

Contents

# encoding: utf-8
module Crumby::Helper
  # view helper
  module ViewHelper
    # render breadcrumb
    # @see Crumby::Trail#render
    # @see Crumby::Renderer::Base
    # @overload crumby(options)
    #   @param [Hash] options
    #   @param [Hash] options passthrough to renderer
    # @overload crumby(scope, options)
    #   @param [Symbol, String] scope scope of breadcrumb
    #   @param [Hash] options passthrough to renderer
    def crumby(*args)
      options = args.extract_options!
      scope = args.first || :default
      crumby_trail(scope).render(self, options)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
crumby-1.1.4 lib/crumby/helper/view.rb
crumby-1.1.3 lib/crumby/helper/view.rb
crumby-1.1.2 lib/crumby/helper/view.rb
crumby-1.1.1 lib/crumby/helper/view.rb
crumby-1.1.0 lib/crumby/helper/view.rb