Boolean argument converted to nil

I have a read action with the argument :voucher, :boolean, allow_nil?: false.
If I call the action passing the argument as true, the genereated query receives the value true for the :voucher argument. If I call the action passing the argument as false, the genereated query receives the value nil for the :voucher argument. I’ve already tried to remove the allow_nil? false and the result is the same.

That seems like a bug. Can you please open an issue?

Sure. Doing it now. Thanks.

Issue reported and resolved.

1 Like