From 959f8cf14f030a84f93fae0c1af590ef123def63 Mon Sep 17 00:00:00 2001 From: Ed Lenox Date: Wed, 24 Sep 2014 20:47:01 +0100 Subject: [PATCH] force sideloaded associated models to have fixed page size --- lib/restpack_serializer/serializable/side_load_data_builder.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/restpack_serializer/serializable/side_load_data_builder.rb b/lib/restpack_serializer/serializable/side_load_data_builder.rb index 8900218..fe58fda 100644 --- a/lib/restpack_serializer/serializable/side_load_data_builder.rb +++ b/lib/restpack_serializer/serializable/side_load_data_builder.rb @@ -47,6 +47,7 @@ def has_association_relation return {} if @models.empty? serializer_class = @serializer.class options = RestPack::Serializer::Options.new(serializer_class) + options.page_size=1000 yield options options.include_links = false serializer_class.page_with_options(options)