Skip to content

Adds default value to filter option#226

Merged
lgebhardt merged 2 commits intomasterfrom
215
May 29, 2015
Merged

Adds default value to filter option#226
lgebhardt merged 2 commits intomasterfrom
215

Conversation

@lgebhardt
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.

Rebase of #215

lgebhardt added a commit that referenced this pull request May 29, 2015
Adds default value to filter option
@lgebhardt lgebhardt merged commit e385293 into master May 29, 2015
@lgebhardt lgebhardt deleted the 215 branch May 29, 2015 20:37
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.

2 participants