varvet / godmin

Admin framework for Rails 5+
http://godmin-sandbox.herokuapp.com
MIT License
486 stars 47 forks source link

All _id params are treated as parent resources #238

Open Linuus opened 7 years ago

Linuus commented 7 years ago

If you add a parameter to a form/url Godmin tries to find a parent resource and scope the resource to that.

  1. We need to check that it is actually a parent If you add blorgh_id to the params now it will blow up trying to constantize this string.

  2. If there is an association with this name it will try to scope it, but you may not want to.