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
62 63 64 65 66 67 68 69 70 |
# File 'lib/breadcrumbs_on_rails/action_controller.rb', line 62 def ( = {}, &block) builder = (.delete(:builder) || Breadcrumbs::SimpleBuilder).new(self, , ) content = builder.render.html_safe if block_given? capture(content, &block) else content end end |