diff options
| author | Teddy Wing | 2017-07-17 18:19:23 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-21 15:59:53 +0200 |
| commit | 0166ef93691416b687091c4ff0aa6fb308a449e2 (patch) | |
| tree | a020939742335e0df4809afd1aa5fedfba0d0d23 /app/controllers/errors_controller.rb | |
| parent | 161f3184783ba3419238d3ce6b2291ef9fabfa01 (diff) | |
| download | chouette-core-0166ef93691416b687091c4ff0aa6fb308a449e2.tar.bz2 | |
VehicleJourneyAtStop: Add validation messages to day offset validator
Since we can't use the lambda syntax when passing a message to a
validator, write a custom validation method that allows us to be more
flexible when setting a message. The correct message with the correct
data is now used for the offset error.
This eliminates our validation of `numberiality`, making our two
validation specs no longer valid.
Refs #3597
Diffstat (limited to 'app/controllers/errors_controller.rb')
0 files changed, 0 insertions, 0 deletions
