aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/referential.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-11-16 16:10:48 +0100
committercedricnjanga2017-11-22 12:41:57 +0100
commit6a4e6e9363913415b9dc35725b7ac85ec9166368 (patch)
tree99d0e8006fb93f0cd659ccaceaf467e24c1b5ea8 /app/models/referential.rb
parent31db1bba72800bddfa5dc9db4419ba95178dc4ff (diff)
downloadchouette-core-6a4e6e9363913415b9dc35725b7ac85ec9166368.tar.bz2
Create objectid format and integrate it in models. Work in progress. Refs #4941
Diffstat (limited to 'app/models/referential.rb')
-rw-r--r--app/models/referential.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index fa6bcbcf1..372f303f1 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -1,6 +1,10 @@
class Referential < ActiveRecord::Base
include DataFormatEnumerations
+<<<<<<< HEAD
include ObjectidFormatterSupport
+=======
+ include ObjectidFormaterSupport
+>>>>>>> Create objectid format and integrate it in models. Work in progress. Refs #4941
extend Enumerize
validates_presence_of :name
@@ -56,7 +60,11 @@ class Referential < ActiveRecord::Base
belongs_to :referential_suite
+<<<<<<< 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
scope :ready, -> { where(ready: true) }
scope :in_periode, ->(periode) { where(id: referential_ids_in_periode(periode)) }