Allow hashes with symbol keys for Database#save_doc #73

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

@heyLu
heyLu commented Oct 4, 2011

Use Document in Database#save_doc to allow non-string hashes as arguments.

So you can write stuff as:

db.save_doc({
_id: "bleh",
whatever: "Is quite awesome",
plus_one: 3
})

And have it accept _id properly.

@heyLu heyLu Use Document in Database#save_doc to allow non-string hashes as argum…
…ents.

So you can write stuff as:

db.save_doc({
	_id: "bleh",
	whatever: "Is quite awesome",
	plus_one: 3
})

And have it accept _id properly.
8a0d889
@heyLu heyLu closed this Nov 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment