diff options
| author | Xinhui | 2017-06-20 11:38:27 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-06-20 11:38:27 +0200 | 
| commit | 041c6d8b732825dc8f84f3795e1fd63f0a30f483 (patch) | |
| tree | 87188457e75f1f6a08f83df367fd49ee4d6820ae /app/models/chouette/journey_pattern.rb | |
| parent | aa359e42b02673a8f75ae60e720c9ae715fd0738 (diff) | |
| download | chouette-core-041c6d8b732825dc8f84f3795e1fd63f0a30f483.tar.bz2 | |
I18n journey_pattern stop_points too_short validation
Refs #3775
Diffstat (limited to 'app/models/chouette/journey_pattern.rb')
| -rw-r--r-- | app/models/chouette/journey_pattern.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/models/chouette/journey_pattern.rb b/app/models/chouette/journey_pattern.rb index 3c902946d..a146dcff1 100644 --- a/app/models/chouette/journey_pattern.rb +++ b/app/models/chouette/journey_pattern.rb @@ -14,7 +14,7 @@ class Chouette::JourneyPattern < Chouette::TridentActiveRecord    validates_presence_of :route    validates_presence_of :name -  validates :stop_points, length: { minimum: 2 }, on: :update +  validates :stop_points, length: { minimum: 2, too_short: :minimum }, on: :update    enum section_status: { todo: 0, completed: 1, control: 2 }    attr_accessor  :control_checked | 
