diff options
| author | Luc Donnet | 2015-02-09 14:58:43 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-02-09 14:58:43 +0100 |
| commit | eb6e5ccbcc6984ed1060b8d54e282b476e37ebce (patch) | |
| tree | b3a28f8ede3f345d211c4c123aaf3b8b87a04bfe /app/controllers | |
| parent | b7cdd93a0b8fdc8981bf5d4249c7c3dccd737ce0 (diff) | |
| download | chouette-core-eb6e5ccbcc6984ed1060b8d54e282b476e37ebce.tar.bz2 | |
Fix delete lines route and make it works again
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/lines_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index be4ca6547..ce552034f 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -34,10 +34,9 @@ class LinesController < ChouetteController object.delete end - def destroy_all + def delete_all objects = get_collection_ivar || set_collection_ivar(end_of_association_chain.where(:id => params[:ids])) - #objects.destroy_all objects.each { |object| object.delete } respond_with(objects, :location => smart_collection_url) end |
