aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorZog2017-12-28 17:07:37 +0100
committerZog2018-01-10 09:29:44 +0100
commit3bc583b1e727f0cf27e0aef8ef94121dd693cd86 (patch)
treed03a9973571eabcb180961c9a485137e62d5ea19 /app/models
parentb4d016c8aa2e671e2b5a492d7e742d5166069495 (diff)
downloadchouette-core-3bc583b1e727f0cf27e0aef8ef94121dd693cd86.tar.bz2
Refs #5437 @0.5h; Show country name instead of city in the journeys editor
When the organisation has the "long_distance_routes" features. Mind the `StopArea#country_name` method which is pending until we merge the branch which adds the countries support.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/chouette/stop_area.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb
index 4f1359ff8..f510ee6e5 100644
--- a/app/models/chouette/stop_area.rb
+++ b/app/models/chouette/stop_area.rb
@@ -355,5 +355,10 @@ module Chouette
def deactivate!
update_attribute :deleted_at, Time.now
end
+
+ def country_name
+ # XXX
+ country_code
+ end
end
end