def render_breadcrumb(options = {})
      options = {
        separator: ">",
        page: @page,
        restricted_only: false,
        reverse: false,
        link_active_page: false
      }.merge(options)

      pages = Page.
        ancestors_for(options[:page]).
        accessible_by(current_ability, :see)

      if options.delete(:restricted_only)
        pages = pages.restricted
      end

      if options.delete(:reverse)
        pages = pages.reorder('lft DESC')
      end

      if options[:without].present?
        without = options.delete(:without)
        pages = pages.where.not(id: without.try(:collect, &:id) || without.id)
      end

      render 'alchemy/breadcrumb/wrapper', pages: pages, options: options
    end
def render_breadcrumb(options = {})
      options = {
        separator: ">",
        page: @page,
        restricted_only: false,
        reverse: false,
        link_active_page: false
      }.merge(options)

      pages = Page.
        ancestors_for(options[:page]).
        accessible_by(current_ability, :see)

      if options.delete(:restricted_only)
        pages = pages.restricted
      end

      if options.delete(:reverse)
        pages = pages.reorder('lft DESC')
      end

      if options[:without].present?
        without = options.delete(:without)
        pages = pages.where.not(id: without.try(:collect, &:id) || without.id)
      end

      render 'alchemy/breadcrumb/wrapper', pages: pages, options: options
    end
Returns page links in a breadcrumb beginning from root to current page.

 === Options:

   separator: %(<span class="separator">></span>)      # Maybe you don't want this separator. Pass another one.
   page: @page                                         # Pass a different Page instead of the default (@page).
   without: nil                                        # Pass Page object or array of Pages that must not be displayed.
   restricted_only: false                              # Pass boolean for displaying restricted pages only.
   reverse: false                                      # Pass boolean for displaying breadcrumb in reversed reversed.