diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-11 11:47:45 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-12 09:38:01 +0200 |
commit | d2855043c53bd4f84a4ca425947948fd31a93432 (patch) | |
tree | 4db9212544efe93fbd1ebadcd642af5607eb3879 /lib/evendoors/spin.rb | |
parent | 1985e84383540100d797579f88c6d1ce072e1463 (diff) | |
download | edoors-ruby-d2855043c53bd4f84a4ca425947948fd31a93432.zip edoors-ruby-d2855043c53bd4f84a4ca425947948fd31a93432.tar.gz |
Particle relies on spin field to resolve src and dst not parent
Diffstat (limited to 'lib/evendoors/spin.rb')
-rw-r--r-- | lib/evendoors/spin.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/evendoors/spin.rb b/lib/evendoors/spin.rb index 69d204d..7fb4218 100644 --- a/lib/evendoors/spin.rb +++ b/lib/evendoors/spin.rb @@ -35,15 +35,14 @@ module EvenDoors @debug_routing = o[:debug_routing]||o['debug_routing']||false # if not o.empty? - p ={'parent'=>self} o['spots'].each do |name,spot| - EvenDoors::Room.json_create(spot.merge!(p)) + EvenDoors::Room.json_create(spot.merge!('parent'=>self)) end if o['spots'] o['app_fifo'].each do |particle| - @app_fifo << EvenDoors::Particle.json_create(particle.merge!(p)) + @app_fifo << EvenDoors::Particle.json_create(particle.merge!('spin'=>self)) end if o['app_fifo'] o['sys_fifo'].each do |particle| - @sys_fifo << EvenDoors::Particle.json_create(particle.merge!(p)) + @sys_fifo << EvenDoors::Particle.json_create(particle.merge!('spin'=>self)) end if o['sys_fifo'] end end |