From f4e40b1971ace2604f61a553e9fa539fd4319467 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Wed, 4 Jun 2014 14:27:54 -0700 Subject: [PATCH] Append html format instead since by default rails will prepend the passed in format and will override in effect --- kaminari-core/lib/kaminari/helpers/tags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaminari-core/lib/kaminari/helpers/tags.rb b/kaminari-core/lib/kaminari/helpers/tags.rb index 4f4ebd7..b415cdf 100644 --- a/kaminari-core/lib/kaminari/helpers/tags.rb +++ b/kaminari-core/lib/kaminari/helpers/tags.rb @@ -26,7 +26,7 @@ module Kaminari end def to_s(locals = {}) #:nodoc: - @template.render :partial => partial_path, :locals => @options.merge(locals), :formats => [:html] + @template.render :partial => partial_path, :locals => @options.merge(locals), :formats => @template.formats + [:html] end def page_url_for(page)