Module: BreadcrumbsOnRails::ActionController::HelperMethods
- Defined in:
- lib/breadcrumbs_on_rails/action_controller.rb
Instance Method Summary collapse
Instance Method Details
#render_breadcrumbs(options = {}, &block) ⇒ Object
79 80 81 82 83 84 85 86 87 |
# File 'lib/breadcrumbs_on_rails/action_controller.rb', line 79 def ( = {}, &block) builder = (.delete(:builder) || Breadcrumbs::SimpleBuilder).new(self, , ) content = builder.render.html_safe if block_given? capture(content, &block) else content end end |