diff options
| author | Edouard Maffert | 2016-09-21 12:09:56 +0200 | 
|---|---|---|
| committer | Edouard Maffert | 2016-09-21 12:12:10 +0200 | 
| commit | d3d7d4aea6672beae5baa3bc184303d5de109a61 (patch) | |
| tree | 5933cccaae112f89d65b1054ff4926da1deeb97d /app/models/chouette/line.rb | |
| parent | 1c6ca2a39a5f1899e55a9362fc9e0d07eeb524a9 (diff) | |
| download | chouette-core-d3d7d4aea6672beae5baa3bc184303d5de109a61.tar.bz2 | |
validate presence of network and companies for lines
Diffstat (limited to 'app/models/chouette/line.rb')
| -rw-r--r-- | app/models/chouette/line.rb | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index 4a4115cc2..14c9c73ba 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -21,9 +21,8 @@ class Chouette::Line < Chouette::ActiveRecord    attr_reader :group_of_line_tokens    attr_accessor :transport_mode -  # FIXME #825 -  #validates_presence_of :network -  #validates_presence_of :company +  validates_presence_of :network +  validates_presence_of :company    validates_format_of :registration_number, :with => %r{\A[\d\w_\-]+\Z}, :allow_nil => true, :allow_blank => true    validates_format_of :stable_id, :with => %r{\A[\d\w_\-]+\Z}, :allow_nil => true, :allow_blank => true | 
