From 9eb782b1859c05a779f315ada477df99e4bc09f1 Mon Sep 17 00:00:00 2001 From: TJ Biddle Date: Thu, 30 Oct 2014 13:32:58 -0400 Subject: [PATCH] Ensure pagination list is wrapped in a div. I'm actually not sure how this gem worked prior - but Bootstrap specs require that the pagination list is wrapped in a div, which has the correct class applied to it. Gem wasn't working for me without this - simply showed up as an unstyled list. --- lib/bootstrap_pagination/bootstrap_renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap_pagination/bootstrap_renderer.rb b/lib/bootstrap_pagination/bootstrap_renderer.rb index d578929..f505dab 100644 --- a/lib/bootstrap_pagination/bootstrap_renderer.rb +++ b/lib/bootstrap_pagination/bootstrap_renderer.rb @@ -15,7 +15,7 @@ def to_html end end.join(@options[:link_separator]) - tag("ul", list_items, class: ul_class) + tag("div", tag("ul", list_items), class: ul_class) end def container_attributes