Commit f5c42031 authored by Andreas Brandl's avatar Andreas Brandl

Add feature-flag for keyset pagination.

parent f8aee5b0
......@@ -2,7 +2,7 @@ module API
module Helpers
module Pagination
def paginate(relation)
strategy = if params[:pagination] == 'keyset'
strategy = if params[:pagination] == 'keyset' && Feature.enabled?('api_keyset_pagination')
KeysetPaginationStrategy
else
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