Changeset [aab22630242991fc7b1d7bd3b5e180ef27cb4196] by d11wtq

October 21st, 2011 @ 10:20 AM

Use multi_json on the Collection as well as on the resources. This unmasks a mysterious bug where calling #to_json on a Collection throws an undefined method 'to_json' error if the json gem is not included, which looks like the method doesn't exist on the Collection, but in fact is coming from inside dm-serializer
https://github.com/datamapper/dm-serializer/commit/aab22630242991fc...

Committed by d11wtq

  • M lib/dm-serializer/to_json.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »