Allows MongoIds and MongoDates in arrays of subobjects. #629

Closed
wants to merge 1 commit into from

4 participants

@rmarscher

Also adds null value capabilities via schema 'null' => true regardless of the field type.

Potential fix for #623.

@rmarscher rmarscher adds null value capabilities via schema 'null' => true regardless of …
…the field type.

Allows MongoIds and MongoDates in arrays of subobjects.
ded7bb3
@travisbot

This pull request passes (merged ded7bb3 into 0809552).

@nateabele
Union of RAD member

Looks good. Later today I'll see how this does against the data branch. Let me know if you beat me to it.

@rmarscher

I'm super swamped with a deadline so probably not, but I hope it helps.

@nateabele
Union of RAD member

@rmarscher No worries dude, this is great. I'll take it from here.

@toomuchpete

fwiw: I merged this pull request into my (otherwise clean) Lithium install and it definitely solves #623. Appears to work well with arrays of MongoIDs. Did not test dates.

@nateabele nateabele added a commit that closed this pull request Sep 13, 2012
@nateabele nateabele Ensuring Mongo object arrays don't get stored as strings, fixes #623.…
… Implementing schema null value support, fixes #629.
7bc8e25
@nateabele nateabele closed this in 7bc8e25 Sep 13, 2012
@nateabele
Union of RAD member

@rmarscher Just FYI, I ended up having to integrate these changes by hand into the data branch. They'll be on master within a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment