Closed
Description
Hello, jsonapi-rb uses
render jsonapi: ...
Instead the configured json or xml
api-pagination/lib/rails/pagination.rb
Lines 11 to 15 in 289716e
My ideia is add a custom parameter that informs possible extensions
# In configuration file
config.render_options = [:json, :jsonapi, :xml]
# In lib/rails/pagination.rb
option = extension(options)
collection = options[option]
collection = _paginate_collection(collection, options)
options[option] = collection
def extension(options)
for option in config.render_options
return key if options.key?(key)
end
end
Metadata
Metadata
Assignees
Labels
No labels