nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code: update clients of the former `recover_with`
[nit.git]
/
lib
/
mongodb
/
mongodb.nit
diff --git
a/lib/mongodb/mongodb.nit
b/lib/mongodb/mongodb.nit
index
78cd75d
..
ab4d387
100644
(file)
--- a/
lib/mongodb/mongodb.nit
+++ b/
lib/mongodb/mongodb.nit
@@
-121,7
+121,7
@@
end
redef class JsonObject
# Inits `self` from a BSON object.
redef class JsonObject
# Inits `self` from a BSON object.
- private init from_bson(bson: BSON) do recover_with(bson.to_json)
+ private init from_bson(bson: BSON) do add_all(bson.to_json)
# Returns a new BSON object from `self`.
private fun to_bson: BSON do return new BSON.from_json(self)
# Returns a new BSON object from `self`.
private fun to_bson: BSON do return new BSON.from_json(self)