You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Unfortunately, this means the url parameter must use 0 or 1 instead of 'true' or 'false':
Is it possible to support 'true' or 'false'?
The text was updated successfully, but these errors were encountered: