diff options
| author | jpl | 2017-03-20 16:46:20 +0100 |
|---|---|---|
| committer | jpl | 2017-03-20 16:46:20 +0100 |
| commit | cfc35aca0f1383069e1f2cc5ed1026d085a1fc1d (patch) | |
| tree | d194a26f6ea698a32b7f45b58abc59b10e0ae83c /lib | |
| parent | 423b5636c4a8ee1eae530e690e8fb1d3b3aa1c05 (diff) | |
| parent | 516971ceec5919e93105e3b01492090ba2a106cf (diff) | |
| download | chouette-core-cfc35aca0f1383069e1f2cc5ed1026d085a1fc1d.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index b7295070a..68f7fc621 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -147,7 +147,8 @@ module Stif :area_type => 'TypeOfPlaceRef', :object_version => 'version', :zip_code => 'PostalRegion', - :city_name => 'Town' + :city_name => 'Town', + :stif_type => 'OBJECT_STATUS' }.each do |k, v| stop[k] = entry[v] end if entry['gml:pos'] @@ -157,7 +158,7 @@ module Stif if stop.changed? stop.created_at = entry[:created] - stop.import_xml = entry[:xml] + stop.import_xml = entry[:xml] prop = stop.new_record? ? :imported_count : :updated_count increment_counts prop, 1 stop.save! |
