lib/ivy/serializers/formats/json_api.rb in ivy-serializers-0.3.0 vs lib/ivy/serializers/formats/json_api.rb in ivy-serializers-0.4.0

- old
+ new

@@ -19,10 +19,14 @@ def has_many(name, resources, options={}) @hash_gen.store_object(name) { linkages(resources) } end def included(document) - @hash_gen.store_object(:included) { super } + @hash_gen.store_array(:included) { super } + end + + def included_resources(included_resources) + included_resources.each_value { |resources| resources(resources) } end def primary_resource(primary_resource_name, primary_resource) super(:data, primary_resource) end