diff options
| author | Michel Etienne | 2013-04-16 09:24:44 +0200 |
|---|---|---|
| committer | Michel Etienne | 2013-04-16 09:24:44 +0200 |
| commit | ff01191e099da7b0594a1fb0345439cd195be51c (patch) | |
| tree | ceda7d15ed99a3a3894485abefc6afebbb456278 /app/controllers/lines_controller.rb | |
| parent | e80012f3e2a8c0e994460b13d6f9a7a8c87f9c81 (diff) | |
| download | chouette-core-ff01191e099da7b0594a1fb0345439cd195be51c.tar.bz2 | |
comment use of delete
Diffstat (limited to 'app/controllers/lines_controller.rb')
| -rw-r--r-- | app/controllers/lines_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index 854b88ae5..acae8348e 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -14,6 +14,8 @@ class LinesController < ChouetteController show! end + # overwrite inherited resources to use delete instead of destroy + # foreign keys will propagate deletion) def destroy_resource(object) object.delete end |
