diff --git a/config/initializers/monkey_patches.rb b/config/initializers/monkey_patches.rb index 3eaf9217e..59804d849 100644 --- a/config/initializers/monkey_patches.rb +++ b/config/initializers/monkey_patches.rb @@ -7,3 +7,13 @@ def average end end end + +module WillPaginate + module ActionView + class Bootstrap4LinkRenderer + def previous_or_next_page(page, text, classname, aria_label = nil) + tag :li, link(text, page || '#', :class => 'page-link', :'aria-label' => aria_label), :class => [(classname[0..3] if @options[:page_links]), (classname if @options[:page_links]), ('disabled' unless page), 'page-item'].join(' ') + end + end + end +end