aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/line.rb
diff options
context:
space:
mode:
authorAlban Peignier2018-04-03 15:23:22 +0200
committerAlban Peignier2018-04-03 15:23:22 +0200
commitcb28e8fd8a505b31d991fde5672f1c5496b2ec62 (patch)
tree3caa9df415bd9803cb85f784cfb89e1f36e32538 /app/models/chouette/line.rb
parent00c8f6c119637762eaf5e60503d3fbdcb0a4bd5e (diff)
downloadchouette-core-cb28e8fd8a505b31d991fde5672f1c5496b2ec62.tar.bz2
Remove hardcoded format on line/stop_area/company registration_numbers (blocks GTFS imports). Refs #6368
Diffstat (limited to 'app/models/chouette/line.rb')
-rw-r--r--app/models/chouette/line.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb
index ae7c25377..9f05b611a 100644
--- a/app/models/chouette/line.rb
+++ b/app/models/chouette/line.rb
@@ -29,7 +29,7 @@ module Chouette
# 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 :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
validates_format_of :url, :with => %r{\Ahttps?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\Z}, :allow_nil => true, :allow_blank => true
validates_format_of :color, :with => %r{\A[0-9a-fA-F]{6}\Z}, :allow_nil => true, :allow_blank => true