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
So looking at how revive_destroyed_dependent_records works it seems there is no way currently to restore the association to nullified dependents. Correct?
Could this be handled by checking for :nullify in get_dependent_records and then if the dependent class has a column dead_[association]id moving the id to to that column and then going ahead and nullifying the records? This would then follow that revive would look for the dead[association]_id column and reverse the operation.
The text was updated successfully, but these errors were encountered:
Ya, as I was typing it out that was exactly my thought - this is more of a feature request which means I should probably fork and implement. sigh I'll see if I can make some time but I'm not the most git-savvy and I'll want to look through the current code base some more.
@JohnKacz You don't have to get it perfect. Just hit the 'fork' button and take a whack at it. Then you and I or anybody else who contributes here can help you figure out how to get things in the right shape. Glad to have your help!
So looking at how revive_destroyed_dependent_records works it seems there is no way currently to restore the association to nullified dependents. Correct?
Could this be handled by checking for :nullify in get_dependent_records and then if the dependent class has a column dead_[association]id moving the id to to that column and then going ahead and nullifying the records? This would then follow that revive would look for the dead[association]_id column and reverse the operation.
The text was updated successfully, but these errors were encountered: