4 ms·
In my uses of rails, belongs_to associations get changed frequently. Any time anything gets 'assigned' to something, this occurs: assigning something to a user,
by nfm 15y ago
In my uses of rails, belongs_to associations get changed frequently. Any time anything gets 'assigned' to something, this occurs: assigning something to a user, to a milestone, to a plan, to an account, maybe even to a priority. YMMV but I'd say this isn't minute.
That said, there are certainly places in my apps where I don't want this to occur. And whitelisting is much better than blacklisting!
- nate 15y agoAnd you're using mass assignment to do those assignments?
- nfm 15y agoNah, just changing the _id column's value so that the belongs_to association changes.
- nate 15y ago"There is probably a minute number of cases where someone wants mass assignment changes to include the parent's id of that record" So it sounds like you aren't using mass assignment to change parent ids either. Most people don't. Most people use mass assignment to change the attributes of an object, not that objects association to a parent.