Module: Twitter::Bootstrap::Breadcrumbs::ClassMethods
- Defined in:
- lib/twitter/bootstrap/rails/breadcrumbs.rb
Instance Method Summary collapse
Instance Method Details
#add_breadcrumb(name, url = '', options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/twitter/bootstrap/rails/breadcrumbs.rb', line 9 def (name, url = '', = {}) .merge! :klass => self.name before_filter do |controller| controller.send :add_breadcrumb, name, url, end end |