diff options
| author | Teddy Wing | 2017-06-23 11:27:20 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-23 11:27:20 +0200 |
| commit | 0b40fcc1328fc8ed242ebad436fede48447e87aa (patch) | |
| tree | 6efe5c87008db211f65e7522a73b9ae838245f5f /app/helpers/lines_helper.rb | |
| parent | a96c4bc40b11baf04d95c125aeb53930f64438a3 (diff) | |
| download | chouette-core-0b40fcc1328fc8ed242ebad436fede48447e87aa.tar.bz2 | |
VehicleJourney.where_departure_time_between: Make end time inclusive
When filtering vehicle journeys by departure time range, include
journeys whose departure times are equal to the end time of the range.
Turns out I made a mistake when copying the range from
`VehicleJourneysController#ransack_periode_filter`. (Here's what it
looked like: 83f143174002ea8d2758d3a3f79fa1b16be9e9eb
between = [:departure_time_gteq, :departure_time_lteq].map do |filter|
)
Add back in the `<=` to the filter.
Refs #3846
Diffstat (limited to 'app/helpers/lines_helper.rb')
0 files changed, 0 insertions, 0 deletions
