diff options
| author | Zakaria BOUZIANE | 2015-10-27 09:47:38 +0100 | 
|---|---|---|
| committer | Zakaria BOUZIANE | 2015-10-27 09:47:38 +0100 | 
| commit | 1db67ba067d373fe845c9f2cde843af0386393e5 (patch) | |
| tree | 384b0243a2a4843b4398c9bbdae71e6ab3ec753f | |
| parent | b62452a1ce33802de4c18162086c3a6b1f94c99d (diff) | |
| download | chouette-core-1db67ba067d373fe845c9f2cde843af0386393e5.tar.bz2 | |
In HUB Profile country_code is mandatory not zip_code
| -rw-r--r-- | lib/ninoxe_extension/hub/stop_area_restrictions.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/ninoxe_extension/hub/stop_area_restrictions.rb b/lib/ninoxe_extension/hub/stop_area_restrictions.rb index ff226de3e..c83cecdb4 100644 --- a/lib/ninoxe_extension/hub/stop_area_restrictions.rb +++ b/lib/ninoxe_extension/hub/stop_area_restrictions.rb @@ -52,7 +52,7 @@ module NinoxeExtension::Hub          sa.validates_length_of :city_name, :minimum => 1, :maximum => 80          # HUB-30 -        sa.validates_format_of :zip_code, :with => %r{\A[\d]{5}\z} +        sa.validates_format_of :country_code, :with => %r{\A[\d]{5}\z}          # HUB-31          # sa.validates_format_of :comment, :with => %r{\A[\w ]{0,255}\z}          sa.validates_length_of :comment, :maximum => 255, :allow_blank => true, :allow_nil => true | 
