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 postgresql database, as column datatype I'm using json and inside hash I have boolean type. If I use array it stores '0' or '1', but not a boolean, if I use hash {false: "Hide", true: "Show"} and before callback self.content['value'] = @value == 'true' if ['true', 'false'].include?(@value) it saves correctly, but shows as it is null.
The text was updated successfully, but these errors were encountered:
I have postgresql database, as column datatype I'm using json and inside hash I have boolean type. If I use array it stores '0' or '1', but not a boolean, if I use hash {false: "Hide", true: "Show"} and before callback
self.content['value'] = @value == 'true' if ['true', 'false'].include?(@value)
it saves correctly, but shows as it is null.The text was updated successfully, but these errors were encountered: