From 244778d885ff8555448ee723441e8b82eadc06a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 May 2012 10:37:55 +0200 Subject: Board: to_json calls hibernate!, json_create calls resume! --- lib/evendoors/board.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 # -- cgit v1.1-2-g2b99