manno / frab

conference manangement system
7 stars 3 forks source link

Handle deleted objects #60

Closed manno closed 12 years ago

manno commented 12 years ago

Handle deletion of objects in all views and controllers. Currently deleting a person throws nil exceptions all over the place. Either catch nil objects early or remove associated content on resource deletion.

manno commented 12 years ago

Maybe do something like

after_destroy :update_event_people 

in app/models/person.rb

manno commented 12 years ago

Fixed for deleted people at least in 485cc11

Delete all dependent resources if person gets deleted.

As an alternative deleted speakers could have been handled in all views
and models where they might turn up as nil. While it may be nice to
retain this data, it's probably not worth the cost.