Append html format instead since by default rails will prepend the passed in format and will override in effect

This commit is contained in:
Jason Kim 2014-06-04 14:27:54 -07:00 committed by Akira Matsuda
parent 3a31af31ed
commit f4e40b1971
1 changed files with 1 additions and 1 deletions

View File

@ -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)