diff options
| author | Alban Peignier | 2018-05-30 17:21:35 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-30 17:21:35 +0200 |
| commit | 335d58df04f40dbf0840b02446ce0761d60d2027 (patch) | |
| tree | c934387f971acbb3f2ba77b8618365b8feebe4eb /app/models/clean_up.rb | |
| parent | 868222a77361068a84eb31a2878b77d275f45df8 (diff) | |
| parent | dbae7bc51423fc5d8b9f08fdd31a38705c5cf771 (diff) | |
| download | chouette-core-335d58df04f40dbf0840b02446ce0761d60d2027.tar.bz2 | |
Merge pull request #599 from af83/custom-clean-on-routes
Custom clean on routes. Fixes #7227
Diffstat (limited to 'app/models/clean_up.rb')
| -rw-r--r-- | app/models/clean_up.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/clean_up.rb b/app/models/clean_up.rb index 9cf2389c9..c9dc269ac 100644 --- a/app/models/clean_up.rb +++ b/app/models/clean_up.rb @@ -109,7 +109,7 @@ class CleanUp < ApplicationModel def destroy_routes_outside_referential line_ids = referential.metadatas.pluck(:line_ids).flatten.uniq - Chouette::Route.where(['line_id not in (?)', line_ids]).destroy_all + Chouette::Route.where(['line_id not in (?)', line_ids]).find_each &:clean! end def destroy_vehicle_journeys |
