1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

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

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)