app/helpers/agilibox/pagination_helper.rb in agilibox-1.9.18 vs app/helpers/agilibox/pagination_helper.rb in agilibox-1.9.19

- old
+ new

@@ -1,7 +1,15 @@ module Agilibox::PaginationHelper + class << self + attr_writer :theme + + def theme + @theme ||= "twitter-bootstrap-3" + end + end + def paginate(objects, options = {}) - options = {theme: "twitter-bootstrap-3"}.merge(options) + options = {theme: Agilibox::PaginationHelper.theme}.merge(options) super(objects, **options).gsub(/>(\s+)</, "><").html_safe end def pagination_infos(collection) tag.p(class: "pagination-infos") { page_entries_info(collection) }