yaauie/embedded-mongo — comment on commit cfdcb63e0af88df68e6c82156576ead23def14ed
File: lib/embedded-mongo/backend/collection.rb line 257
By gdb:

I'd write this as:

if create
doc[current_key] = {}
else
return nil
end