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 add_bootstrap_breadcrumb(name, url = '', options = {})
  options.merge! :klass => self.name
  before_action options do |controller|
    controller.send :add_bootstrap_breadcrumb, name, url, options
  end
end