lib/ivy/serializers/documents/resource_collection.rb in ivy-serializers-0.2.0 vs lib/ivy/serializers/documents/resource_collection.rb in ivy-serializers-0.3.0
- old
+ new
@@ -2,11 +2,11 @@
module Ivy
module Serializers
module Documents
class ResourceCollection < Document
- def generate_linked(generator)
- @primary_resource.each { |resource| @serializer.links(self, resource) }
+ def generate_included(generator)
+ @primary_resource.each { |resource| @serializer.relationships(self, resource) }
super
end
def generate_primary_resource(generator)
generator.primary_resources(@primary_resource_name, @primary_resource)