Pass serializer through from Clover#paginated_result. Also, have Pagination#paginated_result use :items instead of :records as the hash key. This allows Clover#paginated_result to use the result directly. There are no callers of Pagination#paginated_result other than Clover#paginated_result, so this change is safe. The main reason to keep Pagination#paginated_result as a separate method is to allow for easier testing.
1.5 KiB
1.5 KiB