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
When you click the "undo" link after destroying a Roster the Roster is recreated from it's last version, but it's associations are not.
Memberships are destroyed when their Roster is:
This means we loose the Membership that defines what User is an admin for that Roster. With no admin, no User is allowed to edit or destroy that Roster.
I dunno, this has the feeling of something that's going to be a big pain to unravel. And, practically speaking, no one has ever destroyed a roster in "real life".
Yeah, that works too. I don't think it would be too hard to unravel. But I agree, adding a confirm to the "Destroy" button is probably good enough for rosters.
When you click the "undo" link after destroying a Roster the Roster is recreated from it's last version, but it's associations are not.
Memberships are destroyed when their Roster is:
screaming-dinosaur/app/models/roster.rb
Line 6 in da4a878
This means we loose the Membership that defines what User is an admin for that Roster. With no admin, no User is allowed to edit or destroy that Roster.
I see two possible ways of fixing this:
Roster
, this would require changing the association between Users and Rosters and probably removing the Membership class.The text was updated successfully, but these errors were encountered: