diff options
| author | cedricnjanga | 2017-11-22 00:15:30 +0100 | 
|---|---|---|
| committer | cedricnjanga | 2017-11-22 00:15:30 +0100 | 
| commit | 5489c9482cb8658b8540da2b46bfd28f321d866e (patch) | |
| tree | f1b1cdff940319c1b60879a23b232ecd9d4e9284 /lib/stif | |
| parent | 763010ced3202c99f705562a373861f926aad9a1 (diff) | |
| download | chouette-core-5489c9482cb8658b8540da2b46bfd28f321d866e.tar.bz2 | |
Fix the delation of the hacking of Chouette::ActiveRecord#model_name to remove the Chouette namespace
off of the construction of link in the app and in other places.
Added a small change in the reflex sync to set the stop_area_referential in the initialization of the object to be in sync with the work on the objectids (need a objectid_formatter)
Diffstat (limited to 'lib/stif')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index a3bf3957e..39a92bd1f 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -150,9 +150,8 @@ module Stif        end        def create_or_update_stop_area entry -        stop = Chouette::StopArea.find_or_create_by(objectid: entry['id']) +        stop = Chouette::StopArea.find_or_create_by(objectid: entry['id'], stop_area_referential: self.defaut_referential )          stop.deleted_at            = nil -        stop.stop_area_referential = self.defaut_referential          {            :comment        => 'Description',            :name           => 'Name', | 
