diff options
| author | Xinhui | 2018-01-04 14:22:45 +0100 |
|---|---|---|
| committer | Xinhui | 2018-01-04 14:22:45 +0100 |
| commit | ad537be88672bc6472925685e3e204ef562ad8c9 (patch) | |
| tree | 0bd49aa8b1a63da1adb86fabff2918529200837c /app/models | |
| parent | 346fa48d81aa9696bf2c3c8341d4d41c216889a7 (diff) | |
| download | chouette-core-ad537be88672bc6472925685e3e204ef562ad8c9.tar.bz2 | |
Display checksum for journey patterns -m Refs
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/chouette/journey_pattern.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/chouette/journey_pattern.rb b/app/models/chouette/journey_pattern.rb index a62da6353..367b00449 100644 --- a/app/models/chouette/journey_pattern.rb +++ b/app/models/chouette/journey_pattern.rb @@ -40,7 +40,8 @@ module Chouette # Update attributes and stop_points associations jp.update_attributes(state_permited_attributes(item)) unless item['new_record'] jp.state_stop_points_update(item) if !jp.errors.any? && jp.persisted? - item['errors'] = jp.errors if jp.errors.any? + item['errors'] = jp.errors if jp.errors.any? + item['checksum'] = jp.checksum end if state.any? {|item| item['errors']} |
