aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-01-26 16:17:22 +0100
committercedricnjanga2018-02-07 07:24:32 -0800
commitcd0b21446d2b56505917fa310c2e9b23e5819e49 (patch)
treec0632f24658fb1ac281f0b9ea6d6281f05d427b1
parent208166eacaa429066d075ca6264ca2d2183e8a62 (diff)
downloadchouette-core-cd0b21446d2b56505917fa310c2e9b23e5819e49.tar.bz2
Refs #5750 @1h; Add a "kind" attribute to StopAreas
This determines if the StopArea is commercial or not The useless fields are hidden in the form for the non-commercials ones
-rw-r--r--app/models/chouette/stop_area.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb
index bb8747faa..a5573959b 100644
--- a/app/models/chouette/stop_area.rb
+++ b/app/models/chouette/stop_area.rb
@@ -113,7 +113,13 @@ module Chouette
end
end
+<<<<<<< HEAD
alias_method :local_id, :user_objectid
+=======
+ def local_id
+ id.to_s
+ end
+>>>>>>> Refs #5750 @1h; Add a "kind" attribute to StopAreas
def children_in_depth
return [] if self.children.empty?