diff options
| author | Alban Peignier | 2016-05-13 12:05:52 +0200 |
|---|---|---|
| committer | Alban Peignier | 2016-05-13 12:05:52 +0200 |
| commit | c190ce411ec5fe5416ebac634e1ed706b8a4d55b (patch) | |
| tree | 48f8987cc55e79ef3cfb11cf134464cc8c112557 | |
| parent | 6e28e49262ede9c57a6c5726570a4921f4b63d04 (diff) | |
| download | chouette-core-c190ce411ec5fe5416ebac634e1ed706b8a4d55b.tar.bz2 | |
Disable mandatory Network and Company by waiting associated referential refactoring. Refs #825
| -rw-r--r-- | app/models/chouette/line.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index ddd6fc37d..351cb0b0e 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -21,8 +21,9 @@ class Chouette::Line < Chouette::ActiveRecord attr_reader :group_of_line_tokens attr_accessor :transport_mode - validates_presence_of :network - validates_presence_of :company + # FIXME #825 + #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 |
