Skip to content

Adds default value to filter option#215

Closed
old-grrt wants to merge 2 commits intoJSONAPI-Resources:masterfrom
old-grrt:filter-default-option
Closed

Adds default value to filter option#215
old-grrt wants to merge 2 commits intoJSONAPI-Resources:masterfrom
old-grrt:filter-default-option

Conversation

@old-grrt
Copy link
Copy Markdown
Contributor

Adds ability to define a default value for a filter

filter :status, default: 'active'

This value is passed to filter parse, so:

filter :status, default: 'active,normal'

should work as it would come from a request parameter.

@lgebhardt
Copy link
Copy Markdown
Contributor

Merged with #226. Thanks!

@lgebhardt lgebhardt closed this May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants