Sha256: 47effabd5692fd945e5bf9470932922156075200789a7b4ceb497eb0769f2290
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require 'ivy/serializers/documents/document' module Ivy module Serializers module Documents class ResourceCollection < Document def generate_linked(generator) @primary_resource.each { |resource| @serializer.links(self, resource) } super end def generate_primary_resource(generator) generator.primary_resources(@primary_resource_name, @primary_resource) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ivy-serializers-0.2.0 | lib/ivy/serializers/documents/resource_collection.rb |
ivy-serializers-0.1.0 | lib/ivy/serializers/documents/resource_collection.rb |