Skip to content

Commit

Permalink
fixes Multiple elements with pagination class yrgoldteeth#17
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsj committed Jul 6, 2017
1 parent 3d747b1 commit 61ce8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/will_paginate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class BootstrapLinkRenderer < LinkRenderer
protected

def html_container(html)
tag :nav, tag(:ul, html, class: ul_class)
cont_attr = container_attributes
cont_attr[:class].slice! "pagination" if cont_attr[:class].present?
tag :div, tag(:ul, html, :class => "pagination"), cont_attr
end

def page_number(page)
Expand Down

0 comments on commit 61ce8a0

Please sign in to comment.