Skip to content

Commit 6250513

Browse files
authored
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
1 parent 9ef6d9b commit 6250513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ class CustomPaginator < JSONAPI::Paginator
225225
end
226226
```
227227

228-
And then it can be either set at the resource class level (e.g. UserResource.paginator :custom_paginator) or via config initializer:
228+
And then it can be either set at the resource class level (e.g. UserResource.paginator :custom) or via config initializer:
229229

230230
```ruby
231231
# config/initializers/jsonapi_resources.rb
232232
JSONAPI.configure do |config|
233-
config.default_paginator = :custom_paginator
233+
config.default_paginator = :custom
234234
end
235235
```
236236

0 commit comments

Comments
 (0)