lib/greygoo/role/storable.rb
def db_insert
				res = EM::Synchrony.sync coll.safe_insert(to_h('db'))
				handle_error(res)
				return res
			end
# Serializes the object and inserts it to mongo
Serializes the object and inserts it to mongo
Serializes the object and inserts it to mongo
def db_insert
				res = EM::Synchrony.sync coll.safe_insert(to_h('db'))
				handle_error(res)
				return res
			end
def db_insert res = EM :: Synchrony . sync coll . safe_insert ( to_h ( 'db' ) ) handle_error ( res ) return res end
Serializes the object and inserts it to mongo
Serializes the object and inserts it to mongo