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

Merge pull request #282 from yuki24/patch-1-for-issue-280

Make Kaminari.config.default_per_page changeable again
This commit is contained in:
Akira Matsuda 2012-09-07 18:07:10 -07:00
commit c34bee29da

View file

@ -27,7 +27,7 @@ module Kaminari
# This model's max +per_page+ value # This model's max +per_page+ value
# returns +max_per_page+ value unless explicitly overridden via <tt>max_paginates_per</tt> # returns +max_per_page+ value unless explicitly overridden via <tt>max_paginates_per</tt>
def max_per_page def max_per_page
@_max_per_page ||= Kaminari.config.max_per_page @_max_per_page || Kaminari.config.max_per_page
end end
end end
end end