aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/referential.rake
diff options
context:
space:
mode:
authorRobert2017-05-31 15:51:28 +0200
committerRobert2017-05-31 15:51:28 +0200
commit44f068fbcc52ff9c3f35de05178ea8581a79ec5a (patch)
tree175da26b3976d90975546d0c11d67c9f58c142f5 /lib/tasks/referential.rake
parentaf9a40a76adb44bfe04a364f7066a837ebafc151 (diff)
downloadchouette-core-44f068fbcc52ff9c3f35de05178ea8581a79ec5a.tar.bz2
hotfix to adapt referential:create task to newly required attribute 'public_name'
Diffstat (limited to 'lib/tasks/referential.rake')
-rw-r--r--lib/tasks/referential.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/referential.rake b/lib/tasks/referential.rake
index 76f1b4c00..ce1ded4fc 100644
--- a/lib/tasks/referential.rake
+++ b/lib/tasks/referential.rake
@@ -22,7 +22,9 @@ namespace :referential do
stop_areas = workbench.stop_area_referential.stop_areas.last(10)
4.times do |i|
- route_attrs = { line: line, name: "Route #{Faker::Name.unique.name}" }
+ name = Faker::Name.unique.name
+ route_attrs = { line: line, name: "Route #{name}", published_name: "Published #{name}" }
+
if i.even?
route_attrs[:wayback] = :straight_forward
route = Chouette::Route.create!(route_attrs)