diff options
| author | cedricnjanga | 2017-11-16 16:10:48 +0100 | 
|---|---|---|
| committer | cedricnjanga | 2017-11-22 12:41:57 +0100 | 
| commit | 6a4e6e9363913415b9dc35725b7ac85ec9166368 (patch) | |
| tree | 99d0e8006fb93f0cd659ccaceaf467e24c1b5ea8 /app/models/line_referential.rb | |
| parent | 31db1bba72800bddfa5dc9db4419ba95178dc4ff (diff) | |
| download | chouette-core-6a4e6e9363913415b9dc35725b7ac85ec9166368.tar.bz2 | |
Create objectid format and integrate it in models. Work in progress. Refs #4941
Diffstat (limited to 'app/models/line_referential.rb')
| -rw-r--r-- | app/models/line_referential.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/app/models/line_referential.rb b/app/models/line_referential.rb index d8cf74bda..0d7125a57 100644 --- a/app/models/line_referential.rb +++ b/app/models/line_referential.rb @@ -1,5 +1,9 @@  class LineReferential < ActiveRecord::Base +<<<<<<< HEAD    include ObjectidFormatterSupport +======= +  include ObjectidFormaterSupport +>>>>>>> Create objectid format and integrate it in models. Work in progress. Refs #4941    extend StifTransportModeEnumerations    extend Enumerize @@ -11,7 +15,11 @@ class LineReferential < ActiveRecord::Base    has_many :networks, class_name: 'Chouette::Network'    has_many :line_referential_syncs, -> { order created_at: :desc }    has_many :workbenches +<<<<<<< HEAD    enumerize :objectid_format, in: %w(netex stif_netex stif_reflex stif_codifligne), default: 'netex' +======= +  enumerize :objectid_format, in: %w(netex stif_netex stif_reflex stif_codifligne) +>>>>>>> Create objectid format and integrate it in models. Work in progress. Refs #4941    def add_member(organisation, options = {})      attributes = options.merge organisation: organisation | 
