Module: RailsCrumbs::RailsCrumbsController::ClassMethods
- Defined in:
- lib/rails_crumbs/controller.rb
Instance Method Summary collapse
Instance Method Details
#set_railscrumb(name, path = nil, options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rails_crumbs/controller.rb', line 17 def set_railscrumb(name, path = nil, = {}) only = .delete(:only){ [] } if only.empty? = {} else = {:only => only} end before_filter() do |controller| controller.send(:set_railscrumb, name, path, ) end end |