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
This gem works great for allowing only certain values in the .pemit. However, if the checked field is not required on the model, it will let the rest of the hash pass through. This could be an issue on the create action.
It would be amazing if this gem also rejected the entire hash if the .allow test fails.
The text was updated successfully, but these errors were encountered:
I think if you have a couple of different APIs hitting the same model. One API could allow certain fields, one could allow other fields and reject the entire hash.
This gem works great for allowing only certain values in the .pemit. However, if the checked field is not required on the model, it will let the rest of the hash pass through. This could be an issue on the create action.
It would be amazing if this gem also rejected the entire hash if the .allow test fails.
The text was updated successfully, but these errors were encountered: