Sha256: 432712bf41fae98ab07e6a5481b0545bdfb0bd6fa768ba3dbcbafd9e1eaca822

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

module Adminpanel
  module BreadcrumbsHelper

    def initialize_breadcrumb
      @breadcrumb ||= [:title => 'Inicio', :url => root_url]
    end

    def breadcrumb_add(title, url)
      initialize_breadcrumb << { :title => title, :url => url }
    end

    def render_breadcrumb(divider)
      render :partial => 'shared/breadcrumb', :locals => { :nav => initialize_breadcrumb, :divider => divider }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adminpanel-2.1.7 app/helpers/adminpanel/breadcrumbs_helper.rb
adminpanel-2.1.6 app/helpers/adminpanel/breadcrumbs_helper.rb
adminpanel-2.1.5 app/helpers/adminpanel/breadcrumbs_helper.rb
adminpanel-2.1.3 app/helpers/adminpanel/breadcrumbs_helper.rb