-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I have a model that has a boolean property 'protected'. In MySql it's stored as a tinyint with a value of 0 or 1. In my serializer I would like to filter on the property so I added:
can_filter_by :protected
Unfortunately, this means the url parameter must use 0 or 1 instead of 'true' or 'false':
http://localhost:3000/v1/profiles?protected=1
Is it possible to support 'true' or 'false'?
http://localhost:3000/v1/profiles?protected=true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels