Module: Twitter::Bootstrap::Breadcrumbs::ClassMethods
- Defined in:
- lib/twitter/bootstrap/rails/breadcrumbs.rb
Instance Method Summary collapse
Instance Method Details
#add_bootstrap_breadcrumb(name, url = '', options = {}) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/twitter/bootstrap/rails/breadcrumbs.rb', line 25 def (name, url = '', = {}) .merge! :klass => self.name before_filter do |controller| controller.send :add_bootstrap_breadcrumb, name, url, end end |