dewski / json_builder

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
http://garrettbjerkhoel.com/json_builder/
MIT License
243 stars 52 forks source link

Adding Moped::BSON::ObjectId to extensions to properly handle Mongoid 3.0.0+ documents ids #33

Closed ahmadsherif closed 12 years ago

ahmadsherif commented 12 years ago

... otherwise, you are forced to call to_s on the document id to avoid a JSON::ParseError exception.

travisbot commented 12 years ago

This pull request passes (merged a39c9f30 into 1def4d01).

dewski commented 12 years ago

Thanks for adding to_builder for Mongoid >= 3. :metal: I cut a release at 3.1.7 with this patch applied.