diff options
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 |