Option to allow serializer to control filter process. For example: /api/v1/accounts?min_age=18&max_age=50

I need something that allows serializer to over ride the build in filter. This is an option I went with, something like this could also work:

@filters = filters_from_params(params, serializer)
@filters = serializer.filters_from_params(@filters, @params) if serializer.respond_to? :filters_from_params

Let know what you think of it.