lib/roar/json/json_api.rb in roar-1.0.1 vs lib/roar/json/json_api.rb in roar-1.0.2

- old
+ new

@@ -12,9 +12,14 @@ include Roar::JSON::JSONAPI::Document extend ForCollection representable_attrs[:resource_representer] = Class.new(Resource::Representer) + + private + def create_representation_with(doc, options, format) + super(doc, options.merge(:only_body => true), format) + end end end module ForCollection def for_collection # same API as representable. TODO: we could use ::collection_representer! here.