Module: TwitterBreadcrumbsHelper

Defined in:
app/helpers/twitter_breadcrumbs_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_breadcrumbs(options = {}, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/helpers/twitter_breadcrumbs_helper.rb', line 2

def render_breadcrumbs(options = {}, &block)
  return unless breadcrumbs?
  content = render(options[:partial] || 'bootstrap_sass_extras/breadcrumbs')
  if block_given?
    capture(content, &block)
  else
    content
  end
end