My app allows some users to create products using Pundit
. But these users do not have the same permitted params
.
I can't delete the keys because the logic is very complex and it's hard to read.
How can I permit the params by their role? What is the best way to do it?
Thank you so much.