diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-14 10:37:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-14 10:37:55 +0200 |
commit | 244778d885ff8555448ee723441e8b82eadc06a8 (patch) | |
tree | 98363721eea3f0e61281317aef2d0109104ca464 /lib/evendoors | |
parent | 9534d0b4a8bb017278ef171ef35cbdcd3245e9c3 (diff) | |
download | edoors-ruby-244778d885ff8555448ee723441e8b82eadc06a8.zip edoors-ruby-244778d885ff8555448ee723441e8b82eadc06a8.tar.gz |
Board: to_json calls hibernate!, json_create calls resume!
Diffstat (limited to 'lib/evendoors')
-rw-r--r-- | lib/evendoors/board.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/evendoors/board.rb b/lib/evendoors/board.rb index 90b6f00..a81b31a 100644 --- a/lib/evendoors/board.rb +++ b/lib/evendoors/board.rb @@ -33,7 +33,7 @@ module EvenDoors 'kls' => self.class.name, 'name' => @name, 'postponed' => @postponed - }.to_json *a + }.merge(hibernate!).to_json *a end # def self.json_create o @@ -42,6 +42,7 @@ module EvenDoors o['postponed'].each do |link_value,particle| board.process_p EvenDoors::Particle.json_create(particle.merge!('spin'=>board.spin)) end + board.resume! o board end # |