diff options
| author | cedricnjanga | 2017-11-22 00:45:48 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-22 00:45:48 +0100 |
| commit | 510afa8b86fb6f5e4b7d9c39e3a6d3b071cd8ce9 (patch) | |
| tree | 1b3a162722389df4f6b2e444d03e91131032f0d5 /lib/tasks/route_sections.rake | |
| parent | be2bd2e4f902ef12a21425ebe7dcf5699768762a (diff) | |
| parent | 96afaed78fa043449c0264ea09f0106147755c8e (diff) | |
| download | chouette-core-510afa8b86fb6f5e4b7d9c39e3a6d3b071cd8ce9.tar.bz2 | |
Merge branch 'master' into 4941-refactoring_object_id
Diffstat (limited to 'lib/tasks/route_sections.rake')
| -rw-r--r-- | lib/tasks/route_sections.rake | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/tasks/route_sections.rake b/lib/tasks/route_sections.rake deleted file mode 100644 index d48ddbba4..000000000 --- a/lib/tasks/route_sections.rake +++ /dev/null @@ -1,17 +0,0 @@ -namespace :route_sections do - - def find_referential(id_or_slug) - if id_or_slug.to_s =~ /\A\d+\Z/ - Referential.find id_or_slug.to_i - else - Referential.find_by slug: id_or_slug - end - end - - desc "Generate all RouteSections for a given Referential" - task :create_all, [:referential] => [:environment] do |t, args| - find_referential(args[:referential]).switch - OsrmRouteSectionProcessor.create_all - end - -end |
