diff options
| -rw-r--r-- | app/controllers/lines_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index 8aeddb6cd..6403fb329 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -37,7 +37,8 @@ class LinesController < ChouetteController def destroy_all objects = get_collection_ivar || set_collection_ivar(end_of_association_chain.where(:id => params[:ids])) - objects.destroy_all + #objects.destroy_all + objects.each { |object| object.delete } respond_with(objects, :location => smart_collection_url) end |
