Module: BreadcrumbTrail::ActionController::ClassMethods
- Defined in:
- lib/breadcrumb_trail/action_controller.rb
Overview
This extends a controller, providing the ‘breadcrumb` method to the class as a method.
Instance Method Summary collapse
-
#breadcrumb(options, &block) ⇒ void
Creates a before action that defines a breadcrumb before the action takes place.
Instance Method Details
#breadcrumb(options, &block) ⇒ void
This method returns an undefined value.
Creates a before action that defines a breadcrumb before the action takes place. See HelperMethods#breadcrumb.
24 25 26 27 28 |
# File 'lib/breadcrumb_trail/action_controller.rb', line 24 def (, &block) before_action(.delete(:action) || {}) do (, &block) end end |