Revert @eaca75e for amatsuda/kaminari#280
This commit is contained in:
parent
c66ffd13a5
commit
6887c56356
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue