Closed xdmx closed 10 years ago
Thanks, this would be a nice addition.
It should be easy to add a config option to https://github.com/RestPack/restpack_serializer/blob/master/lib/restpack_serializer/configuration.rb
Based on this conversation, we plan to document use kaminari's configuration options for this:
https://github.com/RestPack/restpack_serializer/pull/89#issue-40418211 https://github.com/RestPack/restpack_serializer/issues/90
It would be very useful to set a maximum page_size that is allowed, especially for public APIs it would be very bad of having one loading 1000000 records.
Something like kaminari's .max_page_size. Setting it to a value it will load only up to that amount of records per page and no more.
p.s. awesome gem!