diff options
| author | Teddy Wing | 2018-03-15 11:52:16 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-23 17:16:43 +0100 |
| commit | c0eac353d764f97b6845a0defad5ded1824549b7 (patch) | |
| tree | 87c0068e09efacf06a3b87645032fd25872e168e /app/javascript/journey_patterns | |
| parent | 1b1d9f015d9b416a638f699981f2c83fcf87f641 (diff) | |
| download | chouette-core-c0eac353d764f97b6845a0defad5ded1824549b7.tar.bz2 | |
Route: Don't run `#calculate_costs!` on callback if TomTom disabled
We say `TomTom` is disabled when no API key is present. If this is the
case, the `after_save` callback that uses it shouldn't be executed.
I had to change my `API_KEY` constant to an instance variable to be able
to change it for testing.
Refs #6095
Diffstat (limited to 'app/javascript/journey_patterns')
0 files changed, 0 insertions, 0 deletions
