diff options
| author | Luc Donnet | 2018-04-03 21:27:21 +0200 |
|---|---|---|
| committer | GitHub | 2018-04-03 21:27:21 +0200 |
| commit | 6f6bb81a93d6d1e578f1d44c61299b3180219b92 (patch) | |
| tree | 6c016086c7f6bcc50b8b33d13c34a50b266d166a | |
| parent | b274526124fb5e2242ff482ab504a7ae59dd817b (diff) | |
| parent | 95172d1a3b00f58cb57d39f3fc6fc6c5851c40ec (diff) | |
| download | chouette-core-6f6bb81a93d6d1e578f1d44c61299b3180219b92.tar.bz2 | |
Merge pull request #437 from af83/6387-default-values-for-stop-point-alighting-boarding
6387 Default for enumerizes :for_boarding and :for_alighting
| -rw-r--r-- | app/models/chouette/for_alighting_enumerations.rb | 2 | ||||
| -rw-r--r-- | app/models/chouette/for_boarding_enumerations.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chouette/for_alighting_enumerations.rb b/app/models/chouette/for_alighting_enumerations.rb index ab07a670d..2e15fcb58 100644 --- a/app/models/chouette/for_alighting_enumerations.rb +++ b/app/models/chouette/for_alighting_enumerations.rb @@ -3,6 +3,6 @@ module Chouette extend Enumerize extend ActiveModel::Naming - enumerize :for_alighting, in: %w[normal forbidden request_stop is_flexible] + enumerize :for_alighting, in: %w[normal forbidden request_stop is_flexible], default: :normal end end diff --git a/app/models/chouette/for_boarding_enumerations.rb b/app/models/chouette/for_boarding_enumerations.rb index 48f8762c2..0190bf805 100644 --- a/app/models/chouette/for_boarding_enumerations.rb +++ b/app/models/chouette/for_boarding_enumerations.rb @@ -3,6 +3,6 @@ module Chouette extend Enumerize extend ActiveModel::Naming - enumerize :for_boarding, in: %w[normal forbidden request_stop is_flexible] + enumerize :for_boarding, in: %w[normal forbidden request_stop is_flexible], default: :normal end end |
