diff options
| author | Teddy Wing | 2017-05-22 14:05:54 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-05-22 14:10:03 +0200 |
| commit | fc9ff386b1961949e2ba742ef226935ec3c389cd (patch) | |
| tree | 688915f470e69a5ce10329a7b8b07ef90637a462 /spec/javascripts | |
| parent | d0544404ffd77d276a5db5e8cacc85e26bc5a272 (diff) | |
| download | chouette-core-fc9ff386b1961949e2ba742ef226935ec3c389cd.tar.bz2 | |
VehicleJourneysController: Move departure time filter to a new method
Like we did in d0544404ffd77d276a5db5e8cacc85e26bc5a272 with
`filter_without_time_tables`, add a similar method to extract the
departure time filter from `#collection`. This allows us to keep the
`#collection` method a little cleaner.
Add `maybe_` prefixes to both aforementioned new filter methods because
we aren't guaranteed to be filtering. It depends on the contents of the
request parameters received.
Remove the comment describing the date range filter now that it has a
method name.
Refs #3427
Diffstat (limited to 'spec/javascripts')
0 files changed, 0 insertions, 0 deletions
