Scrub Params

Is it possible to transform all the “NULL” text into nil values in a channel?

I guess it should be something like this, is it possible?

plug :scrub_params, "user" when action in [:new, :create]

1 Like