diff options
Diffstat (limited to 'lib/evendoors/door.rb')
-rw-r--r-- | lib/evendoors/door.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/evendoors/door.rb b/lib/evendoors/door.rb index 5250ffe..bcf8534 100644 --- a/lib/evendoors/door.rb +++ b/lib/evendoors/door.rb @@ -32,12 +32,14 @@ module EvenDoors { 'kls' => self.class.name, 'name' => @name - }.to_json *a + }.merge(hibernate!).to_json *a end # def self.json_create o raise EvenDoors::Exception.new "JSON #{o['kls']} != #{self.name}" if o['kls'] != self.name - self.new o['name'], o['parent'] + door = self.new o['name'], o['parent'] + door.resume! o + door end # def require_p p_kls |