Commit f5c42031 authored by Andreas Brandl's avatar Andreas Brandl

Add feature-flag for keyset pagination.

parent f8aee5b0
...@@ -2,7 +2,7 @@ module API ...@@ -2,7 +2,7 @@ module API
module Helpers module Helpers
module Pagination module Pagination
def paginate(relation) def paginate(relation)
strategy = if params[:pagination] == 'keyset' strategy = if params[:pagination] == 'keyset' && Feature.enabled?('api_keyset_pagination')
KeysetPaginationStrategy KeysetPaginationStrategy
else else
DefaultPaginationStrategy DefaultPaginationStrategy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment