diff options
Diffstat (limited to 'app/models/chouette/stop_area.rb')
| -rw-r--r-- | app/models/chouette/stop_area.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb index de2d4b01c..0735d9cae 100644 --- a/app/models/chouette/stop_area.rb +++ b/app/models/chouette/stop_area.rb @@ -10,7 +10,6 @@ class Chouette::StopArea < Chouette::ActiveRecord include ProjectionFields include StopAreaRestrictions include StopAreaReferentialSupport - include ObjectIdFormat extend Enumerize enumerize :area_type, in: %i(zdep zder zdlp zdlr lda) @@ -64,6 +63,10 @@ class Chouette::StopArea < Chouette::ActiveRecord end end + def objectid_format + "#{self.stop_area_referential.objectid_format}_attributes_support".camelcase.constantize + end + def coordinates @coordinates || combine_lat_lng end |
