Skip to content

Conversation

@dtee
Copy link

@dtee dtee commented Oct 29, 2014

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.

@GavinJoyce
Copy link
Contributor

Thanks for this. Do you have other examples of how you might use this in your application? I'd like to understand the use cases before deciding on what the API should be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants