diff options
| author | cedricnjanga | 2017-11-10 17:23:45 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-10 17:23:45 +0100 |
| commit | 3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e (patch) | |
| tree | 5d22bfc466fd50b76dd805f891b62f59132d22fa /app/models/chouette/time_table.rb | |
| parent | 2f8ff43fe89a8c78575fdb7a9737b5484117087c (diff) | |
| download | chouette-core-3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e.tar.bz2 | |
Add validation and specs to models on objectid_format presence
Diffstat (limited to 'app/models/chouette/time_table.rb')
| -rw-r--r-- | app/models/chouette/time_table.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/chouette/time_table.rb b/app/models/chouette/time_table.rb index f4db0c3b1..6572dbfe4 100644 --- a/app/models/chouette/time_table.rb +++ b/app/models/chouette/time_table.rb @@ -52,6 +52,7 @@ class Chouette::TimeTable < Chouette::TridentActiveRecord accepts_nested_attributes_for :periods, :allow_destroy => :true validates_presence_of :comment + validates_presence_of :objectid_format validates_associated :dates validates_associated :periods |
