diff options
| author | cedricnjanga | 2017-11-16 16:10:48 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-17 10:49:01 +0100 |
| commit | 0f7da86d0a54d84f9f9f5683b2bb95a106158373 (patch) | |
| tree | e0e930a927a2367b5ef7fe2a1906da5dc2e96c16 /app/models/line_referential.rb | |
| parent | 8cbad698e0fe517602bca4b82ae60795eca12ab0 (diff) | |
| download | chouette-core-0f7da86d0a54d84f9f9f5683b2bb95a106158373.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 |
