From 6250513460e486c8e9ad1f20a0e01c138d17200c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Fija=C5=82kowski?= Date: Thu, 2 Jan 2020 12:08:03 +0100 Subject: [PATCH] Remove redundant _paginator from docs example There is no need to add _paginator in pagination config- paginator_klass do this already: def paginator_klass "#{JSONAPI.configuration.default_paginator}_paginator".classify.constantize end --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc2a712..d66cddc 100644 --- a/README.md +++ b/README.md @@ -225,12 +225,12 @@ class CustomPaginator < JSONAPI::Paginator end ``` -And then it can be either set at the resource class level (e.g. UserResource.paginator :custom_paginator) or via config initializer: +And then it can be either set at the resource class level (e.g. UserResource.paginator :custom) or via config initializer: ```ruby # config/initializers/jsonapi_resources.rb JSONAPI.configure do |config| - config.default_paginator = :custom_paginator + config.default_paginator = :custom end ```