Skip to content

Commit

Permalink
Merge pull request seyhunak#216 from isqad88/master
Browse files Browse the repository at this point in the history
Return view helper render_breadcumbs
  • Loading branch information
seyhunak committed May 7, 2012
2 parents 3f2ae1f + 23f045e commit 72b8e8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/helpers/twitter_breadcrumbs_helper.rb
@@ -0,0 +1,5 @@
module TwitterBreadcrumbsHelper
def render_breadcrumbs(divider = '/')
render partial: 'twitter-bootstrap/breadcrumbs', locals: {divider: divider}
end
end
2 changes: 1 addition & 1 deletion lib/twitter/bootstrap/rails/engine.rb
Expand Up @@ -15,7 +15,7 @@ class Engine < ::Rails::Engine
initializer 'twitter-bootstrap-rails.setup_helpers' do |app|
app.config.to_prepare do
ActionController::Base.send :include, BreadCrumbs
ActionController::Base.send :helper_method, :render_breadcrumbs
#ActionController::Base.send :helper_method, :render_breadcrumbs
end
end
end
Expand Down

0 comments on commit 72b8e8b

Please sign in to comment.