How to permit params in Rails where the variable param can be either string or hash?
for eg, how to permit param "abc"?
"abc" => "xz" (case1)
# or
"abc" => { "v" : "yz"} (case2)
The param can be in any of above format.
If I use params.permit(:abc, abc: [:v]) (thinking this would permit both) but this only permits hash and abc is set to nil when case1.