Module: BreadcrumbsOnRails::ActionController::ClassMethods
- Defined in:
- lib/breadcrumbs_on_rails/action_controller.rb
Instance Method Summary collapse
- #add_breadcrumb_on_rails(name, path = nil, filter_options = {}) ⇒ Object (also: #add_breadcrumb)
Instance Method Details
#add_breadcrumb_on_rails(name, path = nil, filter_options = {}) ⇒ Object Also known as:
49 50 51 52 53 54 55 |
# File 'lib/breadcrumbs_on_rails/action_controller.rb', line 49 def (name, path = nil, = {}) = .delete(:options) || {} before_action() do |controller| controller.send(:add_breadcrumb, name, path, ) end end |